Search code examples
indexingneo4jcase-insensitivepy2neo

Case insensitive index in Neo4j using Py2neo


I want to make a case-insensitive index in Neo4j using Py2neo. Read through the docs and googled a lot but didn't find anything. There seems to be this option in Java but not in Py2neo.

Please help!


Solution

  • You can pass configuration options into the GraphDatabaseService.get_or_create_index function as indicated here:

    http://book.py2neo.org/en/latest/graphs_nodes_relationships/#py2neo.neo4j.GraphDatabaseService.get_or_create_index

    These arguments are passed directly into the REST call as described here:

    http://docs.neo4j.org/chunked/milestone/rest-api-indexes.html#rest-api-create-node-index-with-configuration

    Hope this helps.