Spatial queries with multiple locations per document

I never played with that but I think you can create an array of geopoints.

Then simply apply a geo distance filter.

My 2 cents

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 17 oct. 2012 à 09:48, Marian Steinbach marian.steinbach@gmail.com a écrit :

Hi!

I'd like to store documents with multiple geo_point properties in Elasticsearch. Then I want to query the documents so that only those documents are returned which have at least one geo_point within a defined range (lat/lon plus radius). Other non-spatial filters should be applied at the same time.

My question: Is this possible? How would a document and a query have to look like, as an example?

As far as I can tell right now I don't need any sorting based on distance.

Thanks!

Marian

--

--