Next query works for me but I am not sure about performance

traverse place WHERE  [latitude, longitude] WITHIN [[48,21],[49,22]] from 
(select from User ) 


Dňa štvrtok, 23. apríla 2015 16:40:00 UTC+12 Zlatko Fedor napísal(-a):
>
> Hi
>
> How can I get document which contains linked document with geo spatial 
> index?
> I tried:
> SELECT * FROM User WHERE [place.latitude, place.longitude] WITHIN [[48,21
> ],[49,22]]
> but without success (it will always return 0 records)
>
> Each user contains linked document "place" with fields latitude and 
> longitude
> This query will return 1 record(which is correct)
> SELECT * FROM Place WHERE [latitude, longitude] WITHIN [[48,21],[49,22]]
>
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to