Chapter 5. Indexing

Table of Contents

5.1. Introduction
5.2. Create
5.3. Delete
5.4. Add
5.5. Remove
5.6. Update
5.7. Search
5.8. Relationship indices
5.9. Scores
5.10. Configuration and fulltext indices
5.11. Extra features for Lucene indices
5.12. Batch insertion

Indexing in Neo4j can be done in two different ways:

  1. The database itself is a natural index consisting of its relationships of different types between nodes. For example a tree structure can be layered on top of the data and used for index lookups performed by a traverser.
  2. Separate index engines can be used, with Apache Lucene being the default backend included with Neo4j.

This chapter demonstrate how to use the second type of indexing, focussing on Lucene.