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

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


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
To view this discussion on the web visit
For more options, visit