public void updateNodeIndex ( EntityMetadata entityMetadata , GraphDatabaseService graphDb , Node node , MetamodelImpl metaModel ) { if ( ! isNodeAutoIndexingEnabled ( graphDb ) && entityMetadata . isIndexable ( ) ) { Index < Node > nodeIndex = graphDb . index ( ) . forNodes ( entityMetadata . getIndexName ( ) ) ; // Remove all exiting node entries from Index nodeIndex . remove ( node ) ; // Recreate fresh index on this node addNodeIndex ( entityMetadata , node , nodeIndex , metaModel ) ; } }
If node auto - indexing is disabled Update index for this node manually