Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query
Thanks for the contribution, will handle it ASAP! 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 Tue, Nov 15, 2011 at 8:19 PM, bm3780 wrote: > In the short term, I've gotten around this issue by extending the > SpatialPlugin to add a method for searching within a distance of a point in > a layer. Can I get this merged into the baseline? I have created > https://github.com/neo4j/spatial/issues/27 an issue on Github. > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3510679.html > Sent from the Neo4j Community Discussions mailing list archive at > Nabble.com. > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query
In the short term, I've gotten around this issue by extending the SpatialPlugin to add a method for searching within a distance of a point in a layer. Can I get this merged into the baseline? I have created https://github.com/neo4j/spatial/issues/27 an issue on Github. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3510679.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query
Mmh, this is a design issue of passing index-specific queries and parameters into an index. Mattias or anyone else, do you have any thoughts on how to expose that better? If you have some ideas, maybe you can raise an issue for a feature and suggest some approaches? 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 Mon, Nov 14, 2011 at 3:36 PM, bm3780 wrote: > I've tried Gremlin but am not finding the syntax very friendly. Is this > 'withinDistance' spatial index query possible with Gremlin? > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3506994.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query
I've tried Gremlin but am not finding the syntax very friendly. Is this 'withinDistance' spatial index query possible with Gremlin? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3506994.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query
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 params = new HashMap(); params.put( LayerNodeIndex.POINT_PARAMETER, new Double[] { 37.87, 41.13 } ); params.put( LayerNodeIndex.DISTANCE_IN_KM_PARAMETER, 2.0 ); IndexHits 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 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@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Using Webadmin Console to Execute Spatial Cypher Query
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@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user