Skip to content

Commit

Permalink
making a test fail that exposes a problem in SpatialRecordHits not gi…
Browse files Browse the repository at this point in the history
…ving back the hits.
  • Loading branch information
peterneubauer committed Jul 31, 2013
1 parent 0e35b0e commit 7b37c2b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public void querying_with_cypher() throws UnsupportedEncodingException, ParseExc
response = post(Status.OK,"{\"layer\":\"geom\", \"pointX\":15.0,\"pointY\":60.0,\"distanceInKm\":100}", ENDPOINT + "/graphdb/findGeometriesWithinDistance");
assertTrue(response.contains( "60.1" ));
response = post(Status.OK,"{\"query\":\"start node = node:geom(\'bbox:[15.0,15.3,60.0,60.2]\') return node\"}", "http://localhost:"+PORT+"/db/data/cypher");
assertTrue(response.contains( "node" ));
response = post(Status.OK,"{\"query\":\"start node = node:geom(\'withinDistance:[15.0,15.3,60.0,60.2, 5.0]\') return node\"}", "http://localhost:"+PORT+"/db/data/cypher");
assertTrue(response.contains( "node" ));
assertTrue(response.contains( "60.1" ));
response = post(Status.OK,"{\"query\":\"start node = node:geom(\'withinDistance:[15.0,60.0, 100.0]\') return node\"}", "http://localhost:"+PORT+"/db/data/cypher");
assertTrue(response.contains( "60.1" ));

}

Expand Down

1 comment on commit 7b37c2b

@bmrb
Copy link

@bmrb bmrb commented on 7b37c2b Aug 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Peter,

I am following the tutorial at http://neo4j.github.io/spatial/#rest-api-add-a-node-to-the-spatial-index to test Spatial with Neo4j 2.0M03.

Although it looks like everything is created (layer, index etc..) as expected and my domain node is indexed, Cypher query or my Java-based query code do not return any result. When I try the exact same thing with Neo4j 1.9, it works.

So, my question is, is this issue might be causing the problem I am experiencing.

Please sign in to comment.