Hi,
I'm having trouble executing a GeoPolygon query with a certain polygon and I'm unable to figure out what is wrong.
I have tried several other polygons with the same shape, which all execute correctly.
For some reason the coordinates that this polygon has, cause the IllegalArgumentException during the execution of the query.
I get the same result with Elasticsearch 2.4
steps to reproduce:
#curl -XPUT localhost:9200/test -d '{ "mappings" : { "type1" : { "properties" : { "location" : { "type" : "geo_point" }}}}}'
{"acknowledged":true}
#curl -XPOST localhost:9200/test/type1 -d ' { "location": "52.2, 4.4" } '
{"_index":"test","_type":"type1","_id":"AVb-QdVXXlFHU-ps0fRw","_version":1,"_shards":{"total":2,"successful":1,"failed":0},"created":true}
#curl localhost:9200/test/type1/_search -d '{ "query": { "geo_polygon" : { "location" : { "points": [ "-7.998047857222268, -71.00120202079853", "-7.999647520806379, -70.99417435493683", "-8.00600799977009, -70.99701389475712", "-7.998047857222268, -71.00120202079853"] } } } } '
{"took":60,"timed_out":false,"_shards":{"total":5,"successful":4,"failed":1,"failures":[{"shard":4,"index":"test","node":"IzpxgmG3T3S29dr-t01Y3Q","reason":{"type":"illegal_argument_exception","reason":"Illegal shift value, must be 32..63; got shift=0"}}]},"hits":{"total":0,"max_score":null,"hits":[]}}
My Elasticsearch version:
curl localhost:9200
{
"name" : "Erik Killmonger",
"cluster_name" : "testing",
"version" : {
"number" : "2.3.5",
"build_hash" : "90f439ff60a3c0f497f91663701e64ccd01edbb4",
"build_timestamp" : "2016-07-27T10:36:52Z",
"build_snapshot" : false,
"lucene_version" : "5.5.0"
},
"tagline" : "You Know, for Search"
}
my OS:
#uname -a
Linux test 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
#cat /etc/redhat-release
CentOS release 6.6 (Final)