I have following document in my_index:
{
"title": "weiß",
"id": 1
}
Consider the following query:
GET my_index/_search?explain=true
{
"_source": ["title"],
"query": {
"bool": {
"must": [
{
"match": {
"title": {
"query": <query>,
"fuzziness": "AUTO"
}
}
}
]
}
}
}
I can't figure out why query="weißee" matches the above document, but query="weißer" doesn't. Since both are at edit distance of 2, I would expect both to match. Even with if I set fuzziness to 3, 4,.. still weißer is not matching.
Here is mapping and analyzer setting of 'title' field in my_index:
Mapping:
"title" : {
"type" : "text",
"analyzer" : "my_analyzer"
},
Setting:
"my_analyzer" : {
"filter" : [
"lowercase",
"asciifolding"
],
"type" : "custom",
"tokenizer" : "standard"
}
Output of analyzer on title field
