Prioritize results
Sitecore Search returns paginated results for a search keyphrase in its widgets. This topic describes how you can prioritize some results over others using widget variation rules.
To additionally target results using the Strategies and Settings sections of a rule, you can configure the Site and Visitor tabs in the Context section.
To save a widget variation rule, you need to populate at least one of the following configurations:
-
Site or visitor context.
-
Blacklist, boost, pin, or bury strategy.
The following procedures cover various typical scenarios to prioritize some results over others.
Boost items based on the value of an attribute
When this variation is Active, all results which have the selected attribute set to the entered value, are present before other results.
To boost items based on the value of an attribute:
-
To define context for the widget variation rule, follow the steps in the define site context in a widget variation rule or define visitor context in a widget variation rule procedure.
-
On the menu bar, click Strategies.
-
In the left pane of the Strategies page, click the Boost Rules tab.
-
Click Add attribute, select an attribute from the list, and in the operator drop-down menu, click Is.
-
To set the attribute value, in the text box, enter an appropriate value and click Save.
-
To deploy, click Publish.
Pin an item
In a widget variation rule, an item pinned to a slot displays a in the top-right.
When this variation is Active and rule is in effect, the dragged content item appears in the selected slot.
To boost items based on the value of an attribute:
-
To define context for the widget variation rule, follow the steps in the define site context in a widget variation rule or define visitor context in a widget variation rule procedure.
-
On the menu bar, click Strategies.
-
Click the Slots tab.
-
In the right pane, on the Content items tab, to filter the list by name, in the search input field, enter text or to filter the list by other attributes, click .
For details and a performance analytics summary of an item, click Quick Look.
-
Drag the item to one of the slots then to select boosting strategy, click .
-
Select Boost.
-
Click Save.
-
To deploy, click Publish.
Pin an item to a slot in all widgets
In a global widget variation rule, an item pinned to a slot displays a in the top-right.
To pin an item to a slot in all widgets:
-
On the menu bar, click Global Resources.
-
Click Global Widget.
-
On the Global Widget Variations tab, click Add Variation and enter an easy to identify name for the new variation.
-
Turn on the Make this as a default variation switch and click Save.
-
To define context for the widget variation rule, follow the steps in the define site context in a widget variation rule or define visitor context in a widget variation rule procedure.
-
On the Rules tab, click Add Rule.
-
On the menu bar, click Strategies.
-
In the right pane, on the Content items tab, to filter the list by name, in the search input field, enter text or to filter the list by other attributes, click .
For details and a performance analytics summary of an item, click Quick Look.
-
Drag the item to one of the slots.
-
Click Save.
-
To deploy, click Publish.
Switch from pinning an item to boosting it
In a widget variation rule, an item pinned to a slot displays a in the top-right corner.
To switch from pinning item to boosting item:
-
On the menu bar, click Strategies.
-
Click the Slots tab.
-
In the pinned item, to select other strategies, click .
-
Select Boost.
-
Click Save.
-
To deploy, click Publish.
Remove the item pinned to a slot
In a widget variation rule, an item pinned to a slot displays a in the top-right.
To remove an item pinned to a slot:
-
To open the slot drop-down menu, click .
-
Select the Personalized check box.
-
Click Save.
-
To deploy, click Publish.