What is the priority settings for the search in the Accelerator

How can I see the priority of the search?
We use boost now for some fields. But how are the priority between the regular ones in the Accelerator. For example articlenumber, name, descriptions etc? Where can I see this?

Litium version: 6.20

Set a breakpoint before the search is executed (in default you can find it in Litium.Accelerator.ContentProviders.Providers.ProductSearcher.Search()), then just debug and look at the tags in the request for different searches.

1 Like

If you want to get how the actual score on each search hit is calculated you can get that information out from the search.

Disclaimer: Don’t use this in production due to performance

var token = FoundationContext.Current.Token;
var request = new QueryRequest(searchQuery.GetProductCatalogLanguageId(), ProductCatalogSearchDomains.Products, token);
searchQuery.ApplyCategoryTags(request);

request.ExplainScore = true; // <- instruct the search engine to include how the score is calculated
var searchResponse = _searchService.Search(request);
foreach(var hit in searchResponse.Hits)
{
    var info = hit.ScoreExplanation; // <- contains info about how the score is calculated.
}
2 Likes