We are running into an issue that I hope someone can help out with. Small polygons (LESS than the length of 1/2 of the world from east to west) work fine.
Once we increase the size of the polygon to a larger size (say, 2/3 the size of the globe east to west) the results are returned with the OPPOSITE polygon. (Upper right becomes upper left, lower right becomes lower left). I understand why this is happening. Elasticsearch is talking 4 points, and when wrapping the other way creates a smaller polygon than the one intended, it uses that one.
The following search works just fine
<nabble_img src="example1.png" border="0" alt="Works Fine"/>
This one DOES NOT work. It assumes the polygon I want is from the upper left to the upper right (wrapping around the other side of the map).
<nabble_img src="World_Map_-_UrtheCast.png" border="0" alt="Does not work"/>
I want results from the purple box, but it is returning results from the red box.
Has anyone ran into this issue? If so, how does one solve this? We have tried passing the points in a different order, but no matter what was tried, it always assumes the smallest polygon.
SIDE NOTE: When we use "envelope", it works fine, bit polygon support is needed.