Database Reference
In-Depth Information
Theschemaindexingapproachgroupstheindexeddatabynodelabel.Thismeansthateach
index contains nodes with one label. If you need to automatically index all nodes on a giv-
en property (regardless of the node labels), you can instead use the auto-indexing feature.
5.5.2. Auto-indexing
To use auto-indexing, you need to tell Neo4j that you want to turn auto-indexing on for
nodes, relationships, or both. But simply switching on auto-indexing doesn't cause any-
thing to happen. In larger data sets, indexing everything may not be practical; you're po-
tentially increasing storage requirements by a factor of two or more if every value is stored
both in Neo4j storage and the index. There will also be performance overhead for every
mutating operation because of the extra work of maintaining the index. As a result, Neo4j
takesamoreselectiveapproachtoindexing.Evenwithauto-indexingturnedon,Neo4jwill
only maintain indexes of node or relationship properties it's told to index.
How you configure auto-indexing depends on whether you're running Neo4j in embedded
mode or server mode ( chapter 10 covers these two modes).
Configuring auto-indexing in standalone mode
To turn on auto-indexing for a standalone server, you'll need to modify its configuration
file with additional properties. The configuration file can be found at $NEO4J_SERVER/
conf/neo4j.properties, and you'll need to add the following two lines:
Search WWH ::




Custom Search