Improve Relevance Of Results By Adding Scoring Profiles
How Search Scores Are Calculated
?
The final stage of
processing a search query is scoring. The documents that are retrieved from the
first three stages are ranked by the search engine. The number of times
detected search phrases exist in a document, the size of the document, and the
rarity of each keyword all affect the score. The search results are
automatically sorted by search score, with the highest score appearing first.
An $orderby clause can be included to break a tie between two documents that
have the same search score.
Improve Score For More Relevant
Documents
The final score may not
be the highest for the most relevant document because the default scoring is
based on phrase frequency and rarity. Because every dataset is unique, AI
Search allows you to use scoring profiles to affect a document's score.
The most straightforward
scoring profile defines different weights for fields in an index. Functions
like freshness and distance can also be included in the score profile. Compared
to basic weighting, functions offer greater control. For instance, you may
specify how long younger papers will be boosted before they receive the same
score as older documents.
Because of the power of
scoring profiles, you can apply a scoring profile to an index so that fields
are automatically raised for all queries, rather than boosting a particular
phrase in a search request.
Add Weighted Scoring Profile
You can add up to 100
scoring profiles to a search index. The simplest way to create a scoring
profile is in the Azure portal.
- Navigate to your search service.
- Select Indexes, then select the index to add a scoring profile to.
- Select Scoring profiles.
- Select + Add scoring profile.
- In Profile name, enter a unique name.
- To set the scoring profile as a default to be applied to all searches select Set as default profile.
- In Field name, select a field. Then for Weight, enter a weight value.
- Select Save.
You can control which
scoring profile is applied to a search query by appending the
&scoringProfile=PROFILE NAME parameter.
Scoring profiles can also
be added programmatically using the Update Index REST API or in Azure SDKs,
such as the ScoringProfile class in the Azure SDK for .NET.
Conclusion
We have successfully
learnt about Scoring Profiles.
Comments
Post a Comment