A rule describes the conditions that are required to trigger events that change the search results returned in response to a shopper’s query.
A simple rule can have a single condition and a single event, while a complex rule can have up to ten conditions that trigger up to 25 events.
Rules can have:
Query text can contain:
The logical operators
OR join two conditions and return different results. All logical operators used in a rule with multiple conditions are the same. It is not possible to use both
OR in the same rule.
The Match operators
Any determine the logical operator that is used to join multiple conditions in the rule, and can be used to change the existing operator.
All- Uses the
ANDlogical operator to join multiple conditions. A rule that uses the
AllMatch operator can have only one
Search query iscondition.
Any- Uses the
ORlogical operator to join multiple conditions.
When composing a complex rule, it can help to write it out with indentation to describe the conditions, associated events, and product names or SKUs that are needed to return the results you want to achieve. Then, build the rule and test the result.