1
votes

I am new to azure search. May be I am not googling properly, but can anyone guide how can scoring profile be made as part of search query?

Or how can a field (lets say Title among fields like Id, Address, Title) be given a higher weight, so that if the searched text matches some Title, then it is given a higher score, as compared to when searched text matches Address.

1

1 Answers

2
votes

The easiest way to accomplish this is to create a scoring profile with the field weights that you want, and either indicate you want to use it in each search request (using the "scoringProfile" query parameter), or mark it as default to get it automatically applied.

The details on how to author a scoring profile are here: https://docs.microsoft.com/en-us/rest/api/searchservice/add-scoring-profiles-to-a-search-index