Query Rules
Overview
Query Rule, as the name suggests, allows a merchandiser to customize the search results page for a particular query. A query rule is automatically applied when a shopper uses the search query on which the rule is defined.
Once you have created a query rule, you must create a campaign associated with the query rule. The query rule defines when the rule is triggered, and the campaign defines the constraints applied to modifying the search results.
Managing Query Rules
Query rules allow you to manually customize the sequence of product listings for a particular query.
For example, to promote specific products during a certain period, brand, franchise, or category, you can create a promotional campaign using merchandising options such as:
- Filtering
- Slotting
- Sorting
- Boosting
- Pinning
Note: You can create a query rule for a primary search keyword and additional keywords. To learn more, refer to the Create section.
Create a Query Rule
To create a query rule:
- Within the console, navigate to:
Merchandising > Commerce Search
- Click Query Rule
- Click the Add icon. The New Query Rule window appears.
- Enter the primary search query in the Query text field.
- Enter similar queries or synonyms in the Additional Queries text field.
- Click Create
You’ve successfully added a query rule.
Create a Campaign (Based on Query Rule)
A campaign can be created in 3 steps:
- Enter Campaign Details
- Merchandise
- Set Experience
Tip: You can import an existing query rule from another site to create a new campaign.
Steps
-
Create a query rule.
-
In the Enter Campaign Details window:
- Provide a name (required)
- Specify start date (required)
- Specify end date (optional — if not selected, campaign runs perpetually)
- Set the time zone (required)
- Select target device/OS (Desktop, Tablet, Mobile, Android App, iOS App, Windows App)
- Add campaign description (optional)
-
Click Next → Configure Campaign
-
Choose one:
- Click Start Merchandising
- Click Create Landing Page
- Click Add URL
-
Configure merchandising options: Boost, Slot, Sort, Pin, Filter
-
Click Next → Select Banner
- Enter Image URL and Landing Page URL or HTML
-
Click Publish
Edit a Query Rule
-
Go to
Merchandising > Commerce Search
-
Click Query Rule
-
Select the desired rule and click the edit icon
-
In the Add Similar Search Query window:
- Add new search keywords (comma-separated)
- To delete, click the X on the keyword
-
Click Update
Delete a Query Rule
To delete only keywords:
- Click the query rule
- Click the edit icon
- Remove keywords from the query rule window
To delete the entire query rule:
- Click the delete icon
Caution: Deleting a rule is permanent and cannot be undone.
Campaigns
Campaigns are used when certain products need more visibility. You can:
- Promote catalog items
- Create landing pages
- Redirect to brand/category pages
Campaigns are tied to query rules and can be in one of the following states:
State | Description |
---|---|
Draft | Campaign not yet published |
Upcoming | Scheduled to start in the future |
Active | Currently running |
Expired | End date has passed |
Stopped | Manually halted |
Note: Restart a stopped campaign by duplicating it.
Note: A query rule with no active campaign will not affect search results.
Edit Campaigns
-
Navigate to:
Merchandising > Commerce Search
-
Click Query Rule tab
-
Select the campaign and click Edit
-
Update any of the following:
- Name
- Start/End Date
- Timezone
- Target Device/OS
- Description
-
Click Next → Configure Campaign
- Modify merchandising options
-
Click Next → Edit Banner
-
Click Publish
Preview Campaigns
- Navigate to:
Merchandising > Commerce Search
- Click Query Rule tab
- Select the campaign
- Click the Preview icon
- View configuration and close
Duplicate Campaigns
- Navigate to:
Merchandising > Commerce Search
- Click Query Rule tab
- Select the campaign
- Click the doner icon → Duplicate
- Rename and edit as needed
- Click Next to edit or publish
Delete Campaigns
- Navigate to:
Merchandising > Commerce Search
- Click Query Rule tab
- Select the campaign
- Click the doner icon → Delete
- Confirm by clicking Yes, Delete
Caution:Deleted campaigns cannot be recovered.
Updated 17 days ago