Need help with geo_polygon filter


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
Though this is working if I use a geo_bounding_box query or a "bigger"

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 (, in my example,
polygon doesn't cross the date line (or I'm missing something).


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
To view this discussion on the web visit
For more options, visit