Fvh Highlighting taking longer time than unified highlighting

Hi all,
I am trying out different methods of highlighting. As i can see "fvh" is taking more than 10 times as of unified.
The query is :

{"from" : 0, "size" : 1,"_source": {"includes":["TITLE"]
},  "query": {
    "bool": {"should": [{
          "query_string": {
            "query":"\"pratik\"",
            "fields":[],
            "boost":"50"
					}
			}, {
          "multi_match": {
            "query":"pratik",
            "type":"phrase",
            "boost":"10",
            "slop":"2",
            "fields":[]
}},{
        	
          "multi_match": {
           "query":"pratik",
    			     "fields":[]
}},{
        	
          "multi_match": {
           "query":"pratik",
           "fuzziness":"AUTO",
    			     "fields":[]
}}],"minimum_should_match":1,"filter": [ { "terms":  { "ID.keyword" : ["a12d"]} } ]}},  "highlight": {
        "type" : "fvh",
        "fields": {
            "*": {}
        }
    }} 

fvh takes around 140938ms and unified takes 1283ms. How do I reduce the time taken by fvh? Is unified being deprecated ?

FastVectorHighlighter isn't always fast in my experience.
The reason we have different highlighters reflects the fact that various people in the Lucene community have tackled this problem in various ways over the years - each with varying degrees of success.

Is unified being deprecated ?

No. It's currently our default highlighter

Thanks for the response. Really appreciate it.
Add on to my earlier doubt, Unified method highlights both keyword and text field( i have indexed each field as text and keyword) while fvh only highlights text fields.
Is there a method where I could avoid duplicity in highlighting while using unified highlighter?

Generally speaking if you explicitly list only a few fields to highlight rather than using "*" you'll see faster results. That's regardless of choice of highlighter type

Okay!
I have around hundred fields. On a free text search it has to search and highlight all such fields
(including .keyword and text fields) Is there a method to exclude .keyword fields on search and highlight?

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