We can only know which highlighter type was selected by a user at the point when a request is built. But at that point, we cannot access the field’s metadata easily. By default, the Elasticsearch backend would return an error response when a FVH highlighter is applied to a field without term vectors. As for the Lucene backend - it’ll produce an empty result with nothing being highlighted. |