Multi word query - Highlight should show all matched words instead of single word


(Ap) #1

I am using a multi word search query used for to find a match for text that
user is typing. (Im not using Suggesters)

eg. If a doc has a field with the text "... ... ... .. The Moon is a
part... .. ....moon is abc ... .. universe is xyz... ...... ..... galaxy
in the universe ....."
The user types "moo univers", the response I need to send in
suggestions should be "moon universe" and not -"moon", " universe" which
is what happens right now coz I am creating map of tokens.

Currently I am using Highlighting and it returns me the below the matching
snippet :

  1. The Moon is a part
  2. moon is abc
  3. universe is xyz
  4. galaxy in the universe

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ffc2f74c-e1d2-457f-a530-5886c27e5abc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2