I am elasticsearch newbie.
I am trying to use elasticsearch to search some titles let's say books names.
From my client I am sending the user input string every 0.5 second to the server to give suggestions.
So it could be partial words and maybe typos.
What would be the best query/way to deal with that.
Any point on the right direction will be appreciated.
Thanks
// fuzzy query example but it is not answering for multiple words
return await client.search({
index: indexName,
body: {
query: {
fuzzy: {
title: userInputSentence
}
},
},
});