Hi Alireza, Probably the first option is a faster option, right? I heard using CQL from > within Java code > is not as efficient as using the pure Java. >
Yes, if the only constraint is embedded in CQL, then the code will not use the index. If you send an additional bbox it will use the index for the first pass, and CQL for the refined search, and that will be quite fast. Using the GeoPipe API is a safer bet, using the Index always (because it makes the bbox for the index search automatically). BTW, which test code you are referring too? I Tried to find an exmaple > which uses FilterWithin but I was hopeless. > Sorry, I forgot to attach the link. Here it is: https://github.com/neo4j-contrib/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/pipes/GeoPipesTest.java#L169 Regards, Craig -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.