Condition
Condition
Value parameters
- alternatives
-
Whether the pattern should match plurals, synonyms, and typos.
- context
-
An additional restriction that only triggers the rule, when the search has the same value as
ruleContexts
parameter. For example, ifcontext: mobile
, the rule is only triggered when the search request has a matchingruleContexts: mobile
. A rule context must only contain alphanumeric characters. - filters
-
Filters that trigger the rule. You can add add filters using the syntax
facet:value
so that the rule is triggered, when the specific filter is selected. You can usefilters
on its own or combine it with thepattern
parameter. - pattern
-
Query pattern that triggers the rule. You can use either a literal string, or a special pattern
{facet:ATTRIBUTE}
, whereATTRIBUTE
is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, withpattern: {facet:genre}
, the rule is triggered when users search for a genre, such as "comedy".
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any