Prioritize results
Search uses widgets to display paginated results based on a search keyphrase. You can use variation rules to artificially change the order in which specific search results appear in widgets, for example by boosting an item's priority or pinning it to a specific position in the results list.
The following procedures describe how to prioritize results in your implementation of Search.
To save a widget variation rule, you need to populate at least one of the following configurations:
-
Boost, pinpin, blacklist, or bury strategy.
Before configuring a widget variation rule strategy, create or edit a widget variation rule.
Boost items
Using a widget variation to boost a specific attribute causes all results with that attribute to appear above others in search results. For example, setting the attribute color's boost value to red will cause all results that are red to appear higher in search results.
To boost items:
-
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.
-
In the attributes drop-down list, select the attribute you want to boost.
-
In the operator drop-down list, click Is.
-
To set the attribute value, in the text box, enter an appropriate value and click Save.
-
On the Slots tab, click Widget Rules
.
-
In the drop-down list, click Boost.
-
Click Save.
-
To deploy, click Publish.
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.
Pin an item in a specific widget
In a widget variation rule, an item pinned to a slot displays a pin in the top-right.
When this variation is Active and rule is in effect, a chosen content item appears in the selected slot.
To pin an item in a specific widget:
-
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.
-
On the Slots tab, in the Content Items pane on the right-hand side, locate the content item you want to pin.
-
Drag the item into a slot to pin it.
-
Click Save.
-
To deploy, click Publish.
If a content item is pinned, its slot remains occupied even after the content item is deleted, meaning fewer results are shown. To avoid this, remove the item pinned to a slot.
Pin an item in all widgets
In a global widget variation rule, an item pinned to a slot displays a pin in the top-right.
To pin an item 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 appropriate 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.
-
On the Slots tab, in the Content Items pane on the right-hand side, locate the content item you want to pin.
-
Drag the item into a slot to pin it.
-
Click Save.
-
To deploy, click Publish.
Boost a pinned item
You can boost an item that is already pinned, although doing so will remove the pin and free up the slot the item was occupying.
To switch from pinning item to boosting item:
-
On the menu bar, click Strategies.
-
Click the Slots tab.
-
In the pinned item, click Pin
.
-
In the drop-down list, click Boost.
-
Click Save.
-
To deploy, click Publish.
Unpin an item
If you no longer want an item to be pinned in search results, you can remove it from its allocated slot.
To unpin an item:
-
On the menu bar, click Strategies.
-
Click the Slots tab.
-
To open the slot drop-down menu, click Pin
.
-
Select the Personalized check box.
-
Click Save.
-
To deploy, click Publish.