[Maps] adding layers with geo_shape linestring bug #31589
Labels
bug
Fixes for quality problems that affect the customer experience
[Deprecated-Use Team:Presentation]Team:Geo
Former Team Label for Geo Team. Now use Team:Presentation
Kibana version: Kibana 7.0.0.beta1
**Elasticsearch version:**7.0.0.beta1
Describe the bug:
Adding documents containing geo_shape Linestring to an elasticsearch index. Using the "add layers from an elasticsearch index feature". It fails. On further inspection it appears the error is that the geo_bounds aggregation does not work with geo_shape.
Steps to reproduce:
POST gps_test/_doc/1
{
"poslist":
{ "type": "LINESTRING",
"coordinates": [[10.491832, 59.941252],[10.491833, 59.941252],[10.491898, 59.941263]]
}
}
2
ADD GPS_TEST as an index pattern
Go to the Kibana maps app. Select option to add layer from an Elasticsearch index. Seect the Gps_test index, it correctly suggest to use the field poslist.
Expected behavior:
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Inspecting the request reveals this query:
GET gps_test/_search
{
"size": 0,
"aggs": {
"1": {
"geo_bounds": {
"field": "poslist"
}
}
},
"_source": {
"excludes": []
},
"stored_fields": [
"*"
],
"script_fields": {},
"docvalue_fields": [],
"query": {
"bool": {
"must": [],
"filter": [
{
"match_all": {}
}
],
"should": [],
"must_not": []
}
}
}
Error returned:
Running the query in Kibana console returns this error:
"type": "illegal_argument_exception",
"reason": "Fielddata is not supported on field [poslist] of type [geo_shape]"
Any additional context:
The text was updated successfully, but these errors were encountered: