Indexes for search performance
Command | Description |
---|---|
CREATE INDEX [index_name] FOR (n:LabelName) ON (n.propertyName) | Create a single-property index. |
CREATE INDEX [index_name] FOR (n:LabelName) ON (n.propertyName_1, n.propertyName_2, … n.propertyName_n) | Create a composite index. |
DROP INDEX index_name | Drop an index |
CALL db.indexes | List all indexes in the database. |
DROP INDEX ON :LabelName(propertyName) | Drop a single-property index without specifying a name. |
DROP INDEX ON :LabelName (n.propertyName_1, n.propertyName_2, … n.propertyName_n) | Drop a composite index without specifying a name. |
Indexes for full-text search
Usage | Procedure |
---|---|
Create full-text node index | db.index.fulltext.createNodeIndex |
Create full-text relationship index | db.index.fulltext.createRelationshipIndex |
List available analyzers | db.index.fulltext.listAvailableAnalyzers |
Use full-text node index | db.index.fulltext.queryNodes |
Use full-text relationship index | db.index.fulltext.queryRelationships |
Drop full-text index | db.index.fulltext.drop |
Eventually consistent indexes | db.index.fulltext.awaitEventuallyConsistentIndexRefresh |