I use api to search in elastic.
I send query:
{
"bool": {
"should": [
{
"fuzzy": {
"titleLabel.startswith": {
"value": "aquam",
"fuzziness": "AUTO",
"max_expansions": 20,
"prefix_length": 0,
"transpositions": true,
"boost": 20
}
}
}
],
"minimum_should_match": 1
}
}
analyzer:
"startswith": {
"tokenizer": "keyword",
"filter": [
"lowercase",
"icu_folding",
]
}
My problem is that if I search for the word "aqua" it finds nothing. If I search for the word "aquam" it will find one result. But I know that there are more results stored in the db ("aquaman 1, auqman 2, ....").
The question is, why does it find nothing in the first case and only one result in the second?
Can you please advise me why it doesn't work as I want?
THX