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

Creating filter from array fields with multiple values creates invalid elasticsearch filter #94736

Closed
bhavyarm opened this issue Mar 16, 2021 · 2 comments · Fixed by #119548
Closed
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 Feature:Filters

Comments

@bhavyarm
Copy link
Contributor

Kibana version: 7.12.0 BC4

Elasticsearch version: 7.12.0 BC4

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from staging

Describe the bug: If user creates a filter on maps app using tooltips and if the fields are nested - maps app displays ES error.

Steps to reproduce:

  1. Install Kibana ecommerce sample data and go to maps app and create a new map and add ecommerce documents
  2. add these fields for tool tips on the documents layer - category, customer_gender, products.category
  3. look for these values - Men's Accessories,Men's Clothing on a tool tip and click - Kibana creates a filter
  4. The document layer gets disabled and maps display ES error.

Screenshots (if relevant):
Screen Shot 2021-03-16 at 1 19 29 PM

Screen Shot 2021-03-16 at 1 19 36 PM

@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience Feature:Filters [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Mar 16, 2021
@elasticmachine
Copy link
Contributor

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

@nreese nreese self-assigned this Mar 20, 2021
@nreese nreese changed the title User created filter using nested fields in tooltips doesn't work on maps app Creating filter from array fields with multiple values creates invalid elasticsearch filter Mar 22, 2021
@nreese
Copy link
Contributor

nreese commented Mar 22, 2021

I changed the issue name to "Creating filter from array fields with multiple values creates invalid elasticsearch filter"

The issue is not with nested fields but with array fields when there are multiple values. Looking at how Discover handles this value, a match_phrase filter is created foreach value.

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 Feature:Filters
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants