[Neo4j] Using Webadmin Console to Execute Spatial Cypher Query

Peter Neubauer peter.neubauer at neotechnology.com
Fri Nov 11 19:32:15 CET 2011


Hi there,
this is a very good question. You basically can't do it right now,
since this query is expecting a map of parameters

Map<String, Object> params = new HashMap<String, Object>();
        params.put( LayerNodeIndex.POINT_PARAMETER,
                new Double[] { 37.87, 41.13 } );
        params.put( LayerNodeIndex.DISTANCE_IN_KM_PARAMETER, 2.0 );
        IndexHits<Node> hits = index.query(
                LayerNodeIndex.WITHIN_DISTANCE_QUERY, params );


, and I am not sure how to provide this through Cypher. I guess we
have to come up with a good syntax for complex parameters for index
providers.

Any hints on a generic approach to index queries (I think we had this
up before)?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Fri, Nov 11, 2011 at 7:22 PM, b m <bm3780 at gmail.com> wrote:
> I got the spatial index provider working, but now I'm having trouble
> getting a spatial cypher query to execute from within the webadmin console.
>  I want to perform a 'withinDistance' query and am having trouble getting
> the syntax correct.  No luck with the following:
>
>    start n=node:layer1(withinDistance='point: [10, 41], distanceInKm:100')
> return n
> _______________________________________________
> Neo4j mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>


More information about the User mailing list