No_match_size does not work

I want to return the first n characters of the field if nothing returns from the highlight query - this should technically be covered by the no_match_size functionality, but it doesn't seem to be working.

no_match_size
The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight. Defaults to 0 (nothing is returned).
Source: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html

My problem is exactly like a previous post here that was never answered: Highlighter doesn't work with custom _all field and no_match_size.

Does anyone know how to get this working, have any insights, or confirmation that this is a bug? Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.