File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -188,26 +188,25 @@ For a node label, the full-text index deletion syntax is:
188
188
GRAPH.QUERY DEMO_GRAPH " CALL db.idx.fulltext.drop('Movie')"
189
189
```
190
190
191
- ## Creating a full-text index for a relation label
191
+ ## Creating Full-Text indexing for Relation Labels
192
+ To create a full-text index on the name property of all relations with the label Manager and enable phonetic search, use the following synax:
192
193
193
- To construct a full-text index on the ` name ` property with phonetic search of all relations with label ` Manager ` , use the syntax:
194
194
195
195
``` sh
196
196
GRAPH.QUERY DEMO_GRAPH " CREATE FULLTEXT INDEX FOR ()-[m:Manager]-() on (m.name)"
197
197
```
198
+ ## Querying with a Full-Text Index
199
+ To search for specific words within the indexed relations, use:
198
200
199
- ## Utilizing a full-text index for a relation label
200
-
201
- An index can be invoked to match any whole words contained within:
202
201
203
202
``` sh
204
203
GRAPH.QUERY DEMO_GRAPH
205
204
" CALL db.idx.fulltext.queryRelations('Manager', 'Charlie Munger') YIELD relation RETURN relation.name"
206
205
```
207
206
208
- ## Deleting a full-text index for a relation label
207
+ ## Deleting a Full-Text Index
208
+ To delete the full-text index for a specific relation label, use:
209
209
210
- For a relation label, the full-text index deletion syntax is:
211
210
212
211
``` sh
213
212
GRAPH.QUERY DEMO_GRAPH " CALL DROP FULLTEXT INDEX FOR ()-[m:Manager]-() ON (m.name)"
You can’t perform that action at this time.
0 commit comments