Need help with geo_polygon filter


#1

Hi,

there is something that I don't fully understand about geo_polygon filter.

Some points are not always retuned by query when filtering by a polygon. I
think this is happening when points are near polygon bounds but I'm not
sure.
Though this is working if I use a geo_bounding_box query or a "bigger"
polygon.

Moreover, if points are indexed as geo_shape type and I use a geo_shape
filter, it's working with the same polygon used in polygon_filter.

I write a little example in this gist :

I don't think the problem is related to this issue (
https://github.com/elasticsearch/elasticsearch/issues/5968), in my example,
polygon doesn't cross the date line (or I'm missing something).

Regards,
Clément

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/73e55072-6ac9-4551-9f3b-9da81a5f8b5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2