I struggle to perform a fuzzy search with Elasticsearch 7.10.
My request is the following:
{
"size": 5,
"from": 0,
"query": {
"fuzzy": {
"name": {
"value": "P2",
"fuzziness": "AUTO",
"prefix_length": 0,
"max_expansions": 50
}
}
},
"track_scores": false
}
While I have a record looking like:
{
"bookId": "book-2",
"name": "Programming #2",
"entries": 36
}
The name
is declared as {type: "text", fielddata: true}
, and, despite that, I have no result. Can you give me a hint regarding my mistake?