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] Spatial filtering (Draw to filter data) doesn't work when ignoreFilterIfFieldNotInIndex is True #56651

Closed
audeberc opened this issue Feb 3, 2020 · 1 comment · Fixed by #56692
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

@audeberc
Copy link

audeberc commented Feb 3, 2020

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:

  1. Set ignoreFilterIfFieldNotInIndex to True in advanced option
  2. Open a map visualization with a Document layer visible
  3. Open Tools (wrench under the map zoom buttons) > Draw bounds to filter data
  4. Draw a rectangle on the map to test the spatial filtering

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":[]}}}

@nreese nreese added 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 labels Feb 3, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

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
3 participants