File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,30 @@ 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 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 syntax:
193
+
194
+
195
+ ``` sh
196
+ GRAPH.QUERY DEMO_GRAPH " CREATE FULLTEXT INDEX FOR ()-[m:Manager]-() on (m.name)"
197
+ ```
198
+ ## Querying with a Full-Text Index
199
+ To search for specific words within the indexed relations, use:
200
+
201
+
202
+ ``` sh
203
+ GRAPH.QUERY DEMO_GRAPH
204
+ " CALL db.idx.fulltext.queryRelations('Manager', 'Charlie Munger') YIELD relation RETURN relation.name"
205
+ ```
206
+
207
+ ## Deleting a Full-Text Index
208
+ To delete the full-text index for a specific relation label, use:
209
+
210
+
211
+ ``` sh
212
+ GRAPH.QUERY DEMO_GRAPH " CALL DROP FULLTEXT INDEX FOR ()-[m:Manager]-() ON (m.name)"
213
+ ```
214
+
191
215
# Vector indexing
192
216
193
217
With the introduction of the ` vector ` data-type a new type of index was introduced.
You can’t perform that action at this time.
0 commit comments