[Neo4j] Why node's index entry can not be removed from lucene index after the node is deleted from the graph
LMisquitta at saba.com
Tue Dec 14 07:57:14 CET 2010
Though I have not tried it yet, I'd try to use the event handling mechanism to remove all traces of the node from the index for example, on delete.
twitter / @luannem
linkedin / http://in.linkedin.com/in/luannemisquitta
skype / luanne.misquitta
blog / http://thought-bytes.blogspot.com/
Saba. Power Up Your People.
From: user-bounces at lists.neo4j.org [mailto:user-bounces at lists.neo4j.org] On Behalf Of Samuel Feng
Sent: Tuesday, December 14, 2010 12:11 PM
To: Neo4j user discussions
Subject: [Neo4j] Why node's index entry can not be removed from lucene index after the node is deleted from the graph
Index<Node> persons = graphDb.index().forNodes( "persons" );
Node firstPerson = graphDb.createNode();
Node secondPerson = graphDb.createNode();
persons.add( firstPerson, "name", "Mattias Persson" );
Now I have to delete the firstPerson node from the graph.
After the transaction committed, the node is deleted from the graph.
However, I then further check the lucene index using "LUKE", still can find
the node's entry in it.
I understand that this node entry will not affect the query result of
But If my graph has many deletions, there will produce a lot
of obsoleted node entry in lucene index.
Do u have any ideas that how I can delete this obsoleted index entries or
neo4j has some other mechanism to do this?
Neo4j mailing list
User at lists.neo4j.org
More information about the User