Optimize time for a elasticsearch query using fuzziness


(Nikesh) #1

The below search query is taking around 2356 ms to fetch 50 records
Fuzziness leads to slower search. How can I improve performance using Fuzziness?
(Highlight cannot be skipped)
{
"from" : 0, "size" : 50,
"query": {
"bool": {
"must": {
"multi_match": {
"query":"shall have the right",
"fields": ["subType","title","type","content"],
"fuzziness": "AUTO",
"minimum_should_match": "80%"
}
},
"should": {
"multi_match": {
"query":"shall have the right",
"fields": ["subType","title","type","content"],
"type": "phrase",
"slop": 1
}
}
}
},
"aggregations": {
"agg_example": {
"terms": {
"field": "type.keyword"
}
}
},
"highlight": {
"type" : "unified",
"fields": {
"*": {}
}
}
}


(system) #2

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