Elasticsearch cannot query KWT
I'm retrieving geometry data from MS sql server 2012 via jdbc connection and pushing it to elasticsearch. Data table consist of: objectid & shape.
In Kibana data looks like following.
"objectid": 8,
"untitled": "POLYGON ((16131003.104400001 -4962095.885400001, 16131161.300499998 -4962011.5243000016, 16130990.071999997 -4961961.9569999985, 16131003.104400001 -4962095.885400001))",
The "Shape" field here apperes as "untitled" and on the mapping it shows data type as text,
"untitled": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
I am quering the data from Kibana with following query and it prompts me the below error.
GET geo/_search
{
"query": {
"bool" : {
"must" : {
"match_all" : {}
},
"filter" : {
"geo_polygon" : {
"untitled" : {
"polygon" : [
{"lat" : 16131003.104400001, "lon" : -4962095.885400001},
{"lat" : 16131161.300499998, "lon" : -4962011.5243000016},
{"lat" : 16130990.071999997, "lon" : -4961961.9569999985},
{"lat" : 16131003.104400001, "lon" : -4962095.885400001}
]
}
}
}
}
}
}
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "[geo_polygon] query does not support [polygon]",
"line": 10,
"col": 37
}
],
Would be really appreciate if any one could help me out with this.
ps. I'm super new to elasticsearch and sorry for any stupid question
Cheers