[Maps] Spatial filtering (Draw to filter data) doesn't work when ignoreFilterIfFieldNotInIndex is True #56651
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: 7.5.1
Elasticsearch version: 7.5.1
Server OS version: ElasticCloud AWS
Browser version: Chrome Version 79.0.3945.117 (Official Build) (64-bit)
Browser OS version: Ubuntu 18.04
Original install method (e.g. download page, yum, from source, etc.): ElasticCloud
Describe the bug:
When the advanced option ignoreFilterIfFieldNotInIndex is set to True in the advanced option (in order to use multi-index dashboards), spatial filtering functions in the Maps visualization (bounding box filtering, shape filtering) are broken (indexes not filtered).
Steps to reproduce:
Expected behavior:
Data is filtered to only display points inside the bounding box.
Observed behavior:
The data is not filtered even though the filter is displayed under the research bar
Any additional context:
when looking at the request sent by the browser when filtering the data (Chrome developer tools), it seems that the Elasticsearch query is incomplete:
"query":{"bool":{"must":[ ],"filter":[{"match_all":{}}],"should":[],"must_not":[]}}}
Whereas the same action without ignoreFilterIfFieldNotInIndex sends the query:
"query":{"bool":{"must":[],"filter":[{"match_all":{}},{**"geo_bounding_box":{"geom_point":{"bottom_right":[XXX,YYY],"top_left":[XXX,YYY]}}**}],"should":[],"must_not":[]}}}
The text was updated successfully, but these errors were encountered: