Hello!
So I'm working on a search engine for a customer and I'm using the fuzziness parameter in my query.
The query is as follows:
{
"from": 0,
"size": 12,
"query": {
"bool": {
"should": [
{
"bool": {
"should": {
"match": {
"reference": 0
}
},
"boost": 2
}
},
{
"match": {
"name": {
"query": "pain au chcolat",
"cutoff_frequency": 0.01,
"minimum_should_match": "3<75%",
"analyzer": "french",
"fuzziness": "AUTO"
}
}
}
]
}
}
}
As you can see it the search engine is for a french website. In the graphic concept they want to highlight matched results.
In the example I gave you the query will match pain chocolat
. I'd like to be able to highlight both 'pain' and 'chocolat' but I don't know if Elasticsearch can tell me which terms were matched.
Could you guys please give me a hint?
Thanks a lot!