neo4j/spatial — pull request #67 by benday280412 (2012-10-30 09:59:38+00:00)
Title: spatial #36 - Possible Solution

Hi,

This is part of a possible solution to issue #36 raised against neo4j spatial. There is a corresponding change in spring-data-neo4j/spring-data-neo4j for which I will also raise a pull request.

The change tries to use the same approach as used by the Lucene index, which uses a CatchingIteratorWrapper for returning results. This means that deletion only happens when the geom node comes back as part of a query and is found to lack its corresponding domain node.

I've put some comments and questions in the code where I'm not 100% if my understanding is correct.

I look forward to your feedback.

Cheers,

Ben