Match Operators

The Match operators All and 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 AND logical operator to join multiple conditions. A rule that uses the All Match operator can have only one Search query is condition.
  • Any - Uses the OR logical 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.

Default rule

You can set a default rule that is applied when no search term is provided, or no other search rule can be applied. If you set the default rule to “Most Purchased”, then all queries will default to that ranking type, unless super-ceded by a more specific search term. No search term can be set for the default rule.

Order of precedence with multiple rules

Only one search rule is applied to a search term at any one time.
If multiple rules are found to be applicable to a search phrase, then all these rules are applied. If there is a collision between two rules—rule 1 that boosts sku1 but rule 2 hides the same SKU—then the most recently applied rule (rule 2) takes precedence.

  • Rules are ordered by the “Last Modified” timestamp. The most recently modified rule is applied first, and older rules after that, in timestamp order.
  • The query is condition takes precedence over other conditions. If a newer rule contains a query contains condition, but an older rule has a query is condition, the query is rule is applied.