Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maps] adding layers with geo_shape linestring bug #31589

Closed
babadofar opened this issue Feb 20, 2019 · 5 comments · Fixed by #31638
Closed

[Maps] adding layers with geo_shape linestring bug #31589

babadofar opened this issue Feb 20, 2019 · 5 comments · Fixed by #31638
Assignees
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

Comments

@babadofar
Copy link

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:

  1. Create this document
    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.
  2. It does not work

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:

@thomasneirynck thomasneirynck changed the title kibana 7.0.0. beta1 maps app - adding layers with geo_shape bug [Maps] adding layers with geo_shape linestring bug Feb 20, 2019
@thomasneirynck
Copy link
Contributor

@lukasolson lukasolson added the [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label Feb 20, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

@thomasneirynck thomasneirynck added the bug Fixes for quality problems that affect the customer experience label Feb 20, 2019
@nreese
Copy link
Contributor

nreese commented Feb 20, 2019

@babadofar Did you click "fit to data" to trigger the error? Did you line strings get rendered?

@nreese nreese self-assigned this Feb 20, 2019
@thomasneirynck
Copy link
Contributor

see corresponding feature request in ES elastic/elasticsearch#7574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
5 participants