[Filters] Use terms query by default on keyword field #67093
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.
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:
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:
The text was updated successfully, but these errors were encountered: