Skip to content

Commit 1c15f90

Browse files
committed
update full text search on relation doc
1 parent 81e45b2 commit 1c15f90

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cypher/indexing.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,26 +188,25 @@ For a node label, the full-text index deletion syntax is:
188188
GRAPH.QUERY DEMO_GRAPH "CALL db.idx.fulltext.drop('Movie')"
189189
```
190190

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:
192193

193-
To construct a full-text index on the `name` property with phonetic search of all relations with label `Manager`, use the syntax:
194194

195195
```sh
196196
GRAPH.QUERY DEMO_GRAPH "CREATE FULLTEXT INDEX FOR ()-[m:Manager]-() on (m.name)"
197197
```
198+
## Querying with a Full-Text Index
199+
To search for specific words within the indexed relations, use:
198200

199-
## Utilizing a full-text index for a relation label
200-
201-
An index can be invoked to match any whole words contained within:
202201

203202
```sh
204203
GRAPH.QUERY DEMO_GRAPH
205204
"CALL db.idx.fulltext.queryRelations('Manager', 'Charlie Munger') YIELD relation RETURN relation.name"
206205
```
207206

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:
209209

210-
For a relation label, the full-text index deletion syntax is:
211210

212211
```sh
213212
GRAPH.QUERY DEMO_GRAPH "CALL DROP FULLTEXT INDEX FOR ()-[m:Manager]-() ON (m.name)"

0 commit comments

Comments
 (0)