neo4j/spatial — pull request #88 by amorgner (2013-04-20 01:22:57+00:00)
Title: Fixes issues with 1.9.M05 and 1.9.RC1

This should fix https://github.com/neo4j/spatial/issues/87.

Problem was that
public IndexHits query( String key, Object params )

was called from

graph.index.forNodes(name).query(name, query).iterator().asScala

https://github.com/neo4j/neo4j/blob/1.9.RC1/community/cypher/src/main/scala/org/neo4j/cypher/internal/spi/gdsimpl/GDSBackedQueryContext.scala#L87

with the layer name as first parameter.

The submitted PR checks if the first parameter is equal to the layer name, and calls the alternative method

public IndexHits query( Object queryOrQueryObject )

https://github.com/neo4j/spatial/blob/master/src/main/java/org/neo4j/gis/spatial/indexprovider/LayerNodeIndex.java#L285

which splits the query string into two arguments and calls

public IndexHits query( String key, Object params )

again.