Why are there many highlight tags?

Hi, when specifying search result highlight tags, one specifies many tags not just one:

public HB preTags(String... preTags) { ...

(in org/elasticsearch/search/highlight/AbstractHighlighterBuilder.java)

Why many tags? Are the first ones used for good matches, the later ones for worse matches? — However I found this issue, but it's not marked as fixed: https://github.com/elastic/elasticsearch/issues/12326 "Intensity Highlighting".

In my app, E.S. has so far only used the very first highlight tag, although I've specified 7 tags. I'm getting the impression that the 6 last tags aren't used for anything.

I'm using Elastic Search 5 alpha 3.

Best regards,
KajMagnus

Apparently it's used by the Fast Vector Highlighter only.

See https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-highlighting.html#tags

1 Like

Thanks