# ElasticSearch query against 3 location fields?

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-against-3-location-fields/5831>\
**Category:** Elasticsearch\
**Created:** [November 10, 2011, 7:25am UTC](https://discuss.elastic.co/t/elasticsearch-query-against-3-location-fields/5831 "2011-11-10T07:25:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_P](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@Jason\_P](https://discuss.elastic.co/u/Jason_P)\
**Post date:** [November 10, 2011, 7:25am UTC](https://discuss.elastic.co/t/elasticsearch-query-against-3-location-fields/5831/1 "2011-11-10T07:25:52Z")

</div>

Is it possible with ElasticSearch to query against three different  
location fields? This would be with geo-location search. Only one of  
the three fields would need to match the queried location for the  
document to be a match.

If possible, a Java example would be a bonus.

Thanks Jason

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [November 10, 2011, 7:59am UTC](https://discuss.elastic.co/t/elasticsearch-query-against-3-location-fields/5831/2 "2011-11-10T07:59:32Z")

</div>

check SO

> <https://stackoverflow.com/questions/8072879/elasticsearch-query-against-3-location-fields>

location-fields/8076410

On Nov 10, 8:25 am, Jason P [jason.pp...@gmail.com](mailto:jason.pp...@gmail.com) wrote:

> Is it possible with Elasticsearch to query against three different  
> location fields? This would be with geo-location search. Only one of  
> the three fields would need to match the queried location for the  
> document to be a match.
> 
> If possible, a Java example would be a bonus.
> 
> Thanks Jason

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:49am UTC](https://discuss.elastic.co/t/elasticsearch-query-against-3-location-fields/5831/3 "2017-07-06T03:49:14Z")

</div>


