Results 1 to 2 of 2

Thread: cypher query connundrum

  1. #1

    Default 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.

  2. #2
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    The answer is here:

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
  •