Consider a scenario where all documents have following fields
The requirement is that for email the score should be either 100 (if exact match) or 0. For remaining fields, it is 0 to 100 based on edit distance .
Suppose in an index the records are like the following
[email protected],Peterr,Parker,Developer [email protected],Steve,Smith,Manager
The query is made on fuzzy search of all the fields and parameters are like [email protected],Pet,Par,Devl
The search result should have a score for first record like
score for email + score of last name +score of first name+score of title
=100+50(approx edit distance of 'Peterr and Pet')+50(approx edit distance of 'Peterr and Parker')+44(approx edit distance of 'Devl and Developer')
=244
Similarly ,the search result should have a score in similar way.
I just checked Azure search scoring has weights but those I don't think would be of much helpful in scenarios like this .The main thing we are looking for is to find a way where the search score returned for each record by Azure search would be in accordance with the score I discussed above