My application is in MVC and I have a search text box based on azure index, its working fine however I have a scenario where in if I enter "chres Harris" instead of "chris Harris" it should return result "chris Harris" but it returns different result like "bob Harris" and then "chris harris", I want the results to be nearabout the same even if there is a spell mistake, please help will any index scoring profile, parameter boost or something useful ?
0
votes
Can you provide a sample of what you have tried, e.g. how is the text box perfoming its lookup, what is the data set that it is looking up against?
- LordWilmore
well its a search text box where in user can search, indexes are created and binded with azure sql data via .net, I have added suggestor as well however I need to suffice above requirement and I can see there is a option to add analyzers what it is for any idea ?
- harshu288
1 Answers
2
votes
As of now there are two ways you can handle spelling mistakes in Azure Search.
- Use fuzzy queries with Lucene query language. You can boost relevance of exact matches over fuzzy matches for example, search=term^2 OR term~2.
- If you deal with names of things, like in your example, configure your index to support phonetic search. Different boosting options to influence relevance are described in the article.
Let me know if none of them don't works for you.