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

[Filters] Use terms query by default on keyword field #67093

Closed
Tracked by #166068
erms77 opened this issue May 20, 2020 · 5 comments
Closed
Tracked by #166068

[Filters] Use terms query by default on keyword field #67093

erms77 opened this issue May 20, 2020 · 5 comments
Labels
Feature:Filters Feature:Search Querying infrastructure in Kibana Icebox impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@erms77
Copy link

erms77 commented May 20, 2020

Kibana version:
7.6.1

Elasticsearch version:
7.6.1

Server OS version:
Centos 7

Browser version:
Chrome : 81.0.4044.138

Browser OS version:
Windows 10 v1903

Original install method (e.g. download page, yum, from source, etc.):
docker run image from docker.elastic.co

Describe the bug:
When adding a filter (button "add filter" in visualization) kibana uses the syntax match_phrase but if the target field has a keyword type mapping the filter match_phrase does not work.

Steps to reproduce:

  1. On a vizualitation, create a filter on a keyword type mapping field.

Expected behavior:
Kibana should use a term query when the target field is typed keyword ?

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@jimczi
Copy link

jimczi commented May 20, 2020

if the target field has a keyword type mapping the filter match_phrase does not work.

Can you share the error that you're seeing ? It shouldn't be a problem to run a match_phrase query on a keyword field, this is supported at the ES level.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Jun 2, 2021
@lukasolson lukasolson changed the title Add filter use match_phrase by default on keyword field ? [Filters] Use terms query by default on keyword field May 12, 2022
@lukasolson
Copy link
Member

I've updated the description of this issue to suggest using the "terms" query by default if the field in question is a keyword field.

@exalate-issue-sync exalate-issue-sync bot removed the loe:small Small Level of Effort label May 12, 2022
@petrklapka petrklapka added Feature:Search Querying infrastructure in Kibana Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. and removed Team:AppServicesSv labels Nov 23, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@davismcphee davismcphee added the loe:needs-research This issue requires some research before it can be worked on or estimated label Sep 8, 2023
@kertal
Copy link
Member

kertal commented Oct 25, 2023

Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change.

@kertal kertal added the Icebox label Oct 25, 2023
@kertal kertal closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
@github-project-automation github-project-automation bot moved this to Done in current release in kibana-app-arch Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Filters Feature:Search Querying infrastructure in Kibana Icebox impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
Status: Done in current release
Development

No branches or pull requests

8 participants