Description
I noticed some failures in the test above. For example:
It can be reproduced without adding the method name:
./gradlew :server:unitTest
-Dtests.seed=506AA3004455CABB
-Dtests.class=org.elasticsearch.search.geo.GeoShapeQueryTests
-Dtests.method="testQueryRandomGeoCollection"
-Dtests.security.manager=true
-Dtests.locale=it
-Dtests.timezone=Asia/Vladivostok
-Dcompiler.java=11
-Druntime.java=8
I had a look into it and I could reproduce the issue at Lucene level.
The problem is that we are generating degenerated polygons in one dimension, for example:
polygon ((1.401298464324817E-45 22.0, 1.401298464324817E-45 69.0, 4.8202184588118395E-40 69.0, 4.8202184588118395E-40 22.0, 1.401298464324817E-45 22.0))
Then when indexing this polygon and perform an intersect query using the same one, they do not match. This is probably due to the encoding Lucene is using.