Highlighting match_phrase matches words not phrases

(Joe Nunez) #1


I am new to Elasticsearch, and so am watching the Getting Started video. At approx. 43 minutes, Zach shows the highlight feature with a match_phrase verb. I found the behavior unexpected. Each word in the phrase was emphasized separately (lazy</em dog). I would have expected that behavior associated with a match verb. Instead, I was expecting the entire phrase to be emphasized as a whole (lazy dog).

What was the rationale for the selected behavior? Is there a way to accomplish a full phrase emphasis?

(system) #2