Boost search results for SXA site queries

Version: 10.4

When searching for a term in an SXA site, the search engine goes through all SXA items and fields in the index. You can use search scopes to limit search results based on conditions. Within a scope, you can boost certain results by defining boosting rules. This adjusts the final score, changing the rankings of the returned results. For example, you can use boosting rules to promote the most popular books in a bookshop or to promote the sponsored pages of your website in the search results.

For a new scope, you build a search query that enables you to add several conditions. For example, for a search scope for weekend trips on a travel site, you can combine the location of the trips with the template that you use to describe the trips.

Scope search example in Content Editor.

For every search scope, you can add boosting rules. For example, if for your weekend trip scope, you want to promote the trips to Amsterdam.

To create a boosting rule:

  1. Navigate to /sitecore/content/Tenant/Site/Settings/Scopes/ and in the Boosting section, click Edit rule to add a new boosting rule.

  2. Specify the conditions and assign the boosting values. For example, for a site that lists fruit, if you want the sour and yellow fruits to rank higher than the other fruits:

    Scope example with conditions and boosting values.

In the Create rule dialog box, there are specific predefined SXA boosting rules available. You can select a predefined condition from the list and then edit the condition. For example:

Condition

Description

Where the specific field contains current page specific field content

Boosts the results that contain the specific field on the specific page defined in the rule. For example:

Boost results with a specific field.

Where the page is tagged the same as the current page

Boosts results for pages with the same tag. For example, if you use the tag sponsored for the current page, the results for pages with the same tag will be boosted.

Boost results for pages with the same tag.

Do you have some feedback for us?

If you have suggestions for improving this article,