-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Highlighting in Kibana doesn't work for constant_keyword field type #85596
Comments
Pinging @elastic/es-search (Team:Search) |
We need to decide if we at all want to highlight this field, does it make sense to highlight this field, as all documents need to be highlighted? Tagging this question for Highlighting fails because queries on If we decide to still do highlight on this field, we probably need to come up with a separate query instead of Meanwhile using |
We've discussed this issue within the team. And we are interested to learn more what is the intention of highlighting in Kibana? Is it to show what parts of documents' fields matched query (query based approach) or it it to highlight whatever get displayed that share the same keywords as the query (field based approach)? |
I'd assume that Kibana does not need to know if the field is @kertal could you provide some context / confirm my assumption please? |
@javanna it's been a while, so I will have another look at this 👍 |
@javanna Assumption confirmed. Kibana sends the same query for |
constant_keyword are now treated like standard keyword and can be highlighted in kibana. closes elastic#85596
constant_keyword are now treated like standard keyword and can be highlighted in kibana. closes elastic#85596
Can i try? |
@piergm ok |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Sorry I haven't had time lately, I apologize for the PR!
…On Fri, 12 Jul 2024 at 17:33, elasticsearchmachine ***@***.***> wrote:
Pinging @elastic/es-search-relevance
<https://github.com/orgs/elastic/teams/es-search-relevance> (Team:Search
Relevance)
—
Reply to this email directly, view it on GitHub
<#85596 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKP5DZEAH7NQHDS5BOVNSLZL6PHZAVCNFSM5SHX32O2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRSGUYTSNBYGY3A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Elasticsearch Version
8.2
Installed Plugins
none
Java Version
bundled
OS Version
MacOs 12.3
Problem Description
When searching in Kibana Discover fields of type

constant_keyword
are not highlighted, here's an example:It should look like this
.
Steps to Reproduce
constant_keyword
constant_keyword
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: