[Neo] deleting indexed nodes

Stefan Armbruster ml001 at armbruster-it.de
Wed Feb 10 23:25:10 CET 2010


Hi Mattias,

thanks for your detailed answer. IMHO your explanation should be added
to the wiki.

As a follow up question, why isn't it possible to index relationships.
Since they also might contain properties, wouldn't it be better that the
IndexService uses the common shared interface PropertyContainer instead
of Node? What is the reason for this design decision?

Regards,
Stefan

Mattias Persson schrieb:
> 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>:
> 
> 
> 



More information about the User mailing list