Creating a search rule
Create a search rule to deliver customized search results and ordering. You can also define targets in search rules to specify which customers see your search rules. Creating search rules ensures that targeted search results are seen by the right customers.
Procedure
- Open the Marketing tool.
- From the toolbar, click the arrow on the
right side of Create New;
then select Search rule.The New Search rule template window opens.
- In the left pane, click the name
of the folder containing the template you want to use. The Custom
Templates folder contains any templates you have created.
The Management Center includes the following standard search rule templates:
- Blank search rule
- This search rule template is empty. Use it as a starting point
to build any type of search rule. Use this template for search rules
that use the following actions, since they do not have a custom template:
- Add To Or Remove From Customer Segment
- Add Or Replace Search Criteria
- Change Search Result Order
- This search rule orders search results for a customer that searches for specific keywords. It changes the position of certain results within the search results list. Catalog entries that meet certain criteria can be ranked higher or lower to promote specific catalog entries over others for a specific customer search.
- Add or Replace Search Criteria
- This search rule adds or replaces search criteria when customers submit searches in the store. Adding search criteria limits the scope of search results in your store by adding additional search criteria, while replacing search criteria modifies the search results.
- Specify Top Search Results
- This search rule enables elevating specific catalog entries to the top of search results for a customer that searches for specific keywords.
- In the right pane, click the name of the template; then
click OK.The Search Rule Builder opens. The top half of the page is the work area. The bottom half of the page is the properties view.
- In the properties view, set the following properties for
the search rule:
Property Description Name Enter a meaningful name in the field. This name displays in the search rules list page, and identifies the search rule. Description Enter a meaningful description in the field. This description displays in the search rules list page, and it should explain what the search rule is intended to do. This description helps business users understand the search rule at a glance without having to open the Search Rule Builder. Priority Optionally, assign the search rule a priority using this list. The priority can be assigned using a number between zero and one thousand. The higher the number, the higher the priority. When multiple rules are scheduled, they are evaluated in priority sequence. Start date Define a start date and time for the search rule. If you do not specify a start date, the rule will be applicable as soon as it is activated. End date Define an end date and time for the search rule. If you do not specify an end date, the rule will run indefinitely. - If you chose the Blank search rule template,
from the Actions section of the palette, drag
an action element onto a flow connector in the work area. The action
element defines what you want to do in the search rule.The following table describes the available actions for search rules. Click on any action to get details and an example.
Action What happens Changes the position of certain results within the search results list. Catalog entries that meet certain criteria can be ranked higher to promote specific catalog entries over others for a specific customer search. Conversely, catalog entries that meet certain criteria can be ranked lower to demote specific catalog entries under others for a specific customer search.
Elevates specific catalog entries to display at the top of the search results list. Replaces search keywords submitted by the customer with alternative search keywords. Adds the customer to or removes the customer from an existing customer segment that you specify. - In the work area, click the action element (for example Change Search Result Order) to display its properties.
- In the properties view for the action element, identify what you want the action to do.
- Optional: Add target elements to your search
rule.Targets define what additional criteria a customer must meet before they see what you have defined for this search rule.
- Optional: Add branch elements to your search
rule.A branch element splits a single path in the rule into two or more paths. You can then use different target and action elements on each path within the same rule.
- Optional: Add additional branches, targets and actions to complete your search rule. You can right-click on any element to open a context-sensitive menu that has tasks that you can perform. This menu includes an option to Delete unwanted elements.
- From the File menu, select Save to save your search rule.
Results
What to do next
- You must activate the search rule so that it becomes available in the storefront.
- You can also test the search rule in store preview to make sure
it works as expected.
See Store preview for more information.