# Geo polygon filter and percolator

**URL:** <https://discuss.elastic.co/t/geo-polygon-filter-and-percolator/10322>\
**Category:** Elasticsearch\
**Created:** [January 12, 2013, 11:31pm UTC](https://discuss.elastic.co/t/geo-polygon-filter-and-percolator/10322 "2013-01-12T23:31:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_3](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@Ali\_3](https://discuss.elastic.co/u/Ali_3)\
**Post date:** [January 12, 2013, 11:31pm UTC](https://discuss.elastic.co/t/geo-polygon-filter-and-percolator/10322/1 "2013-01-12T23:31:57Z")

</div>

Hello,

I am trying to use geo polygon filter in a percolator query. When I  
percolate a document I get no matches.  
Here is the gist: [https://gist.github.com/4520987](https://gist.github.com/4520987). Any ideas would be  
greatly appreciated.  
Thanks for looking in advance.

Best regards,  
Ali

--

---

<div class="post-metadata">

**Author:** ![Ali\_3](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@Ali\_3](https://discuss.elastic.co/u/Ali_3)\
**Post date:** [January 13, 2013, 5:49pm UTC](https://discuss.elastic.co/t/geo-polygon-filter-and-percolator/10322/2 "2013-01-13T17:49:07Z")

</div>

Never mind, my mistake, the point was not in the polygon to begin with (I  
feel stupid 🙂 ). I tried with another set of points and it works.  
This is a really cool feature.

Thanks

On Saturday, January 12, 2013 3:31:57 PM UTC-8, Ali wrote:

> Hello,
> 
> I am trying to use geo polygon filter in a percolator query. When I  
> percolate a document I get no matches.  
> Here is the gist: [Geo-Polygon Percolator · GitHub](https://gist.github.com/4520987). Any ideas would be  
> greatly appreciated.  
> Thanks for looking in advance.
> 
> Best regards,  
> Ali

--

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 13, 2013, 6:01pm UTC](https://discuss.elastic.co/t/geo-polygon-filter-and-percolator/10322/3 "2013-01-13T18:01:20Z")

</div>

Yes. I started to work on your case and saw that searches was not giving results!

Cool if you find it yourself and thanks for the feedback here.

For next users, could you update your gist with working values?

Thanks

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

Le 13 janv. 2013 à 18:49, Ali [asad7009@gmail.com](mailto:asad7009@gmail.com) a écrit :

> Never mind, my mistake, the point was not in the polygon to begin with (I feel stupid 🙂 ). I tried with another set of points and it works.  
> This is a really cool feature.
> 
> Thanks
> 
> On Saturday, January 12, 2013 3:31:57 PM UTC-8, Ali wrote:
> 
> > Hello,
> > 
> > I am trying to use geo polygon filter in a percolator query. When I percolate a document I get no matches.  
> > Here is the gist: [Geo-Polygon Percolator · GitHub](https://gist.github.com/4520987). Any ideas would be greatly appreciated.  
> > Thanks for looking in advance.
> > 
> > Best regards,  
> > Ali
> 
> --

--

---

<div class="post-metadata">

**Author:** ![Ali\_3](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@Ali\_3](https://discuss.elastic.co/u/Ali_3)\
**Post date:** [January 13, 2013, 6:42pm UTC](https://discuss.elastic.co/t/geo-polygon-filter-and-percolator/10322/4 "2013-01-13T18:42:49Z")

</div>

Thanks David for working on my query, I have updated my gist (  
[Geo-Polygon Percolator · GitHub](https://gist.github.com/4520987))

Best regards,

Ali

On Sunday, January 13, 2013 10:01:20 AM UTC-8, David Pilato wrote:

> Yes. I started to work on your case and saw that searches was not giving  
> results!
> 
> Cool if you find it yourself and thanks for the feedback here.
> 
> For next users, could you update your gist with working values?
> 
> Thanks
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 13 janv. 2013 à 18:49, Ali \<[asad...@gmail.com](mailto:asad...@gmail.com) \<javascript:\>\> a écrit :
> 
> Never mind, my mistake, the point was not in the polygon to begin with (I  
> feel stupid 🙂 ). I tried with another set of points and it works.  
> This is a really cool feature.
> 
> Thanks
> 
> On Saturday, January 12, 2013 3:31:57 PM UTC-8, Ali wrote:
> 
> > Hello,
> > 
> > I am trying to use geo polygon filter in a percolator query. When I  
> > percolate a document I get no matches.  
> > Here is the gist: [Geo-Polygon Percolator · GitHub](https://gist.github.com/4520987). Any ideas would be  
> > greatly appreciated.  
> > Thanks for looking in advance.
> > 
> > Best regards,  
> > Ali
> > 
> > --

--

---

<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, 2:56am UTC](https://discuss.elastic.co/t/geo-polygon-filter-and-percolator/10322/5 "2017-07-06T02:56:42Z")

</div>


