I have a Azure search index containing address information of users with fields and corresponding weights as follows:
weights= @{
HouseNumber = '40'
StreetName = '36'
City = '30'
PostalCode = '29'
Province = '25'
Country = '21'
FSA = '20'
Plus4 = '16'
SuiteName = '12'
SuiteRange = '11'
StreetPost = '10'
StreetPre = '8'
StreetSuffix = '6'
}
I am using searchmode as any for querying. How can I decide, that the record with max score is the most relevant one? Means, in case, the user doesn't enter all the keywords of the address, The relevance of the records may vary. E.g., if the string contains keywords like, '1A1' which can be part of the postal code 'A1A 1A1' or may be a housenumber. This will return both the records, but with different scores. How should I fix this?