[Neo] deleting indexed nodes
mattias at neotechnology.com
Wed Feb 10 22:56:37 CET 2010
No the node doesn't get deleted from the index when you call
Node.delete(). It's up to the application (as you said) to make sure
of that). However the index just skips nodes which aren't found in
IndexService.getNodes() so such errors can be hidden. Remember though
that ids are reused so if a node with id 10 is created and indexed,
then deleted (but not from the index) and then later on another node
is created with id 10 it'll show up as a hit from getNodes() even
though it might not actually be a hit.
Did that answer your question?
2010/2/10 Stefan Armbruster <ml001 at armbruster-it.de>:
> one short question regarding IndexService. What happens if a Node with
> indexed properties is deleted via node.delete()? Are the index entries
> automatically removed or is the application responsible for this.
> A short test showed up, that the node is not found any more using
> indexservice.getNodes(), so I assume node.delete() also removes the
> index entries. Can someone please confirm this?
> Regards & thx in advance,
> Neo mailing list
> User at lists.neo4j.org
Mattias Persson, [mattias at neotechnology.com]
Neo Technology, www.neotechnology.com
More information about the User