Monday, 1 June 2015

Sitecore solr search boosting



In this blog I will explain a useful functionality in sitecore solr search that it used when you want to sort search result item based in clauses ( predicates ) matching.


So let's assume that you have two clause ( predicates ) and you want to display items that match the first clause before the items match the second predicate; In this case you need to use boost method.

Actually you can give specific boost value for search clause ( predicate ) in your search and the score result for each result item will be accumulative for each matching predicate.

As you can see from the following code example you can apply boost with specific value for each clause (predicate) and the result items will be scored based on each match clause.



For each result hit you can get the hit score value and by this value you can sort the result item or so some calculation to provide relevancy percentage.



One another thing you can do is to update the default boost value using the field "boost value"  in /sitecore/templates/System/Templates/Sections/Indexing section Standard values item or update this field for specific templates that you need.


You can find more information about sitecore boosting and sorting  search result based on a score value from the sitecore-7-six-types-of-search-boosting
 

2 comments:

window tinting Littleton said...

Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information. elo boost

Vogue Vacation Homes Dubai said...

Looking to earn more rental income from your vacation home? Look no further than Vogue Vacation Dubai. Our expert team of vacation home management professionals can help you increase your rental income by up to 30%.

Post a Comment