-
Apr 14th, 2012, 06:37 AM
#1
cypher query connundrum
Hi,
I'm working with Spring Data Neo4J, Neo4j 1.6.1 and the following model:
@Indexed(indexName = "locationsindex")
public class Location {
@GraphId
private Long id;
private float latitude;
private float longitude;
...
}
and I'm trying to write a Cypher query like:
@Query("...")
Location findByLatAndLong(final float latitude, final float longitude);
I have tried several options and nothing seems to work; I'm now thinking that perhaps I should select the node by an index query (because I need to check both latitude and longitude).
Any help is appreciated.
Thanks.
Eugen.
-
Apr 15th, 2012, 04:52 AM
#2
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules