Skip to main content

CreateIndex

Creates a new index.

Parameters

  • index_type: Specifies if the index if for entities or connections.
  • class: Specified the class of the entity/connection.
  • property_key: Specifies the name of the property indexed.

Details

This command checks if the index already exists and adds one if it doesn't. The matches are case sensitive for all the parameters.

The index_type parameter can be either "entity" or "connection".

Examples

Create an index for the property "name" for the entities of the class "Person":


[{
"CreateIndex": {
"index_type": "entity",
"class": "Person",
"property_key": "name"
}
}]