Skip to content
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

Highlight simple search results #101

Open
kalwar opened this issue Apr 15, 2016 · 3 comments
Open

Highlight simple search results #101

kalwar opened this issue Apr 15, 2016 · 3 comments

Comments

@kalwar
Copy link

kalwar commented Apr 15, 2016

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" : {} } },

@jettro
Copy link
Owner

jettro commented Apr 30, 2016

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

@kalwar
Copy link
Author

kalwar commented Apr 30, 2016

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.

@jettro
Copy link
Owner

jettro commented May 1, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants