neo4j/community — Issue #209: Automatic index not updated when using BatchInserter
Author: deelam
Created: 2012-02-01 00:46:59+00:00
State: open

Currently, only manual indexes are populated when bulk loading data using BatchInserter, as described in http://docs.neo4j.org/chunked/stable/indexing-batchinsert.html.

If an automatic index is set up in the database, it does not include the batch-loaded data, and there is no way to "refresh" the auto-index automatically.

Possible solution 1: Update the automatic index when using BatchInserter.
A suggestion was made to use the name of the automatic index (i.e., "node_auto_index" and "relationship_auto_index") in the place of "actors" in 'BatchInserterIndex actors = indexProvider.nodeIndex( "actors", MapUtil.stringMap( "type", "exact" ) );'. (I have not tested this, but the "actors" index was marked as a manual index when I created it. Will doing this suggestion convert the "node_auto_index" into a manual index?)

Possible solution 2: Implement a refresh method to update the automatic index based on all the data in the database.