Optimize elasticsearch query using highlighting

I used the highlight feature of elasticsearch and found the time taken for search has increased dramatically. To give you an example on a 50,000 record set, when searching without highlight, the query took 194ms and while using highlight 2991ms. Can you please let me know why when using highlight is used, processing time is high?
An example query is mentioned below:

{
"from": 30,
"size": 60,
"query": {
"bool": {
"must": {
"multi_match": {
"query": "shall have the right",
"fields": [
"subType",
"title",
"type",
"content"
],
"fuzziness": 1

}
}
}
},
"highlight": {
"type": "unified",
"fields": {
"*": {}
}
}
}

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