harshu288
harshu288

Reputation: 151

Azure Search Spell mistake handling

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 ?

Upvotes: 0

Views: 1516

Answers (1)

Yahnoosh
Yahnoosh

Reputation: 1972

As of now there are two ways you can handle spelling mistakes in Azure Search.

  1. 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.
  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.

Upvotes: 2

Related Questions