Show snippet of field content that contains relevant part #162322
Labels
Feature:Discover
Discover Application
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
In our index, we have one field that contains the text from a whole document (typically 4-5 pages long). We are particularly interested in the content of that text, and that is what we are mainly searching for. (The other fields are used primarily for filtering down the results.)
Right now, if we search for a specific word, we see the search results, but only the first few lines of the field content. It would be great if you could see a relevant snippet of the text. So the part of the text that contains the word we searched for, instead of the first few lines. I believe this is already possible when using a API request (https://www.elastic.co/guide/en/app-search/current/result-fields-highlights.html#result-fields-highlights-snippet-result-field)
Below is an example. Each of the cells contains the word 'Netherlands'. However, for the middle 3 results, it is not immediately obvious in which context this word is present in the text. We would prefer to see the relevant snippet that contains the word 'Netherlands'.
The text was updated successfully, but these errors were encountered: