Hello,
I'm building a small research compoentent, but it will have to search through a lot of data.
I made a multi_match between different fields but with the fuzziness setting (1) to improve the search results, the highlight loses a letter.
Is it possible to avoid this?
QueryCode:
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "test12342",
"fields": [
"otherLocales.name.edge",
"locales.IT.name.edge",
"locales.EN.name.edge"
],
"type": "best_fields",
"fuzziness": "1",
"operator": "And"
}
},
{
"terms": {
"contentType": [
"ALL"
]
}
}
]
}
},
"highlight": {
"fields": {
"otherLocales.name.edge": {
"type": "fvh",
"order": "score"
},
"locales.IT.name.edge": {
"type": "fvh",
"order": "score"
},
"locales.EN.name.edge": {
"type": "fvh",
"order": "score"
}
}
}