# Filter results where given geopint is in an indexed polygon

**URL:** <https://discuss.elastic.co/t/filter-results-where-given-geopint-is-in-an-indexed-polygon/28960>\
**Category:** Elasticsearch\
**Created:** [September 9, 2015, 7:07pm UTC](https://discuss.elastic.co/t/filter-results-where-given-geopint-is-in-an-indexed-polygon/28960 "2015-09-09T19:07:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobby\_Pilot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bobby_pilot/32/1186_2.png) [@Bobby\_Pilot](https://discuss.elastic.co/u/Bobby_Pilot)\
**Post date:** [September 9, 2015, 7:07pm UTC](https://discuss.elastic.co/t/filter-results-where-given-geopint-is-in-an-indexed-polygon/28960/1 "2015-09-09T19:07:07Z")

</div>

I'm working on a use case where the index includes documents that have a polygon geoshape. I want to be able to query those documents passing a single geopoint and return only results which have polygons where the given point is included. I've read through the geo filters and they all seem to support the inverse of that usecase. Any recommendations how to solve this?

---

<div class="post-metadata">

**Author:** ![shanec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanec/32/4004_2.png) [@shanec](https://discuss.elastic.co/u/shanec)\
**Post date:** [September 9, 2015, 9:06pm UTC](https://discuss.elastic.co/t/filter-results-where-given-geopint-is-in-an-indexed-polygon/28960/2 "2015-09-09T21:06:09Z")

</div>

This is a pretty good use case for percolator: register your shapes as queries and then check your points for which it matches. [https://www.elastic.co/blog/using-percolator-geo-tagging](https://www.elastic.co/blog/using-percolator-geo-tagging) is a blog post outlining exactly this use case.

---

<div class="post-metadata">

**Author:** ![Bobby\_Pilot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bobby_pilot/32/1186_2.png) [@Bobby\_Pilot](https://discuss.elastic.co/u/Bobby_Pilot)\
**Post date:** [September 9, 2015, 9:44pm UTC](https://discuss.elastic.co/t/filter-results-where-given-geopint-is-in-an-indexed-polygon/28960/3 "2015-09-09T21:44:00Z")

</div>

Perfect. thanks!

---

<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 5, 2017, 11:51pm UTC](https://discuss.elastic.co/t/filter-results-where-given-geopint-is-in-an-indexed-polygon/28960/4 "2017-07-05T23:51:27Z")

</div>


