Highlighters in the discover tab in Kibana

I want to search phrases on the discover tab in Kibana and I want Kibana to return only the snippets that contain my search rather than all the text. For example, assume you have indexed books and you want only the book name and also the snippets that contain the search items . In dev tools , I can include a highlight object in the request body that specifies the content field and it gives me what I need but I want the same result to show in the discover tab. Is this something doable?

I guess you are achieving this by specifying a small fragment_size parameter for the highlight?

I think if you were able to control the fragement_size with some kind of advanced setting, you might be able to achieve what you're looking for.

This could be an interesting enhancement request! Sign in to GitHub · GitHub

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.