Announcement Announcement Module
Collapse
No announcement yet.
cypher query connundrum Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    The answer is here:

    Comment

    Working...
    X