Hi Michael,

You can do that using geo-distance sorting:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#_geo_distance_sorting

It would probably not be optimal in the sense that elasticsearch will need
to compute the distance for every matching document, but maybe it would
still be fast enough?


On Fri, Oct 24, 2014 at 11:11 AM, Michael Lumbroso <mich...@sportintown.com>
wrote:

> Hello,
>
> sorry if this question has already been asked, but I didn't find much
> material during my search.
> Basically, what I need to do, is find the exact 100 closest objects around
> a spatial point (longitude, latitude), among a 1 million geolocalized
> object all around the world.
>
> Is there an efficient way to do that? (performance is the most important
> parameter here)
> Are there plugins/libraries to help me do so?
> Are there better options than Elasticsearch for this very problem?
>
> Thanks for your help, and keep up the good work on this wonderful tool
>
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/04ce1fbd-c88f-4517-9d56-044bb235c29c%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/04ce1fbd-c88f-4517-9d56-044bb235c29c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Adrien Grand

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j45xYH%2BGmF%2BQ3t5m1OYLKZD7Vp6p0HxpmkD7-Q%2B7Zu1hQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to