elasticsearch-gui
elasticsearch-gui copied to clipboard
Highlight simple search results
How do you highlight simple search results? It would be great if simple search strings are also highlighted in the results page.
I tried something like this but failed miserably. :( [query_parsing_exception] [simple_query_string] query does not support [pre_tags]
executedQuery = { "simple_query_string": { "query": vm.search.simple, "highlight" : { "pre_tags" : ["<tag1>", "<tag2>"], "post_tags" : ["</tag1>", "</tag2>"], "fields" : { "_all" : {} } },
Do you mean in the app or in general? If in the app which screen? if you have generic elastic question I prefer if you use the discus.elastic.co
Thanks for your kind response.
I was wondering in the simple search. If it would be possible to highlight the search result, for example when user enters search query in the simple search, would it be possible to also highlight the search query in the results field.
If you want me to post question on discus.elastic.co, I'll post is there too.
I wasn't sure if you meant in the tool or in elasticsearch in general. If it is a question for the tool there is no need to post it in discuss. But now I understand you, I'll make it an enhancement. Planning some time the coming weeks to do some updates to the tool.