Highlighters are able to handle text and keyword field by reanalyzing their content at search time. However they don't check if the field was ignored at search time due to the ignore_above option. For instance a keyword field that is greater than the ignore_above option would skip indexing but if it is set in an highlighter option, the content will be extracted from _source and reanalyzed (ignoring ignore_above option). We should check the ignore_above option at highlighting time in order to avoid hitting the highlight.max_analyzed_offset on a field that was ignored at index time.
Highlighters are able to handle
textandkeywordfield by reanalyzing their content at search time. However they don't check if the field was ignored at search time due to theignore_aboveoption. For instance akeywordfield that is greater than theignore_aboveoption would skip indexing but if it is set in an highlighter option, the content will be extracted from_sourceand reanalyzed (ignoringignore_aboveoption). We should check theignore_aboveoption at highlighting time in order to avoid hitting thehighlight.max_analyzed_offseton a field that was ignored at index time.