Method: Algolia::Search::Condition#pattern

Defined in:
lib/algolia/models/search/condition.rb

#patternObject

Query pattern that triggers the rule. You can use either a literal string, or a special pattern ‘facet:ATTRIBUTE`, where ATTRIBUTE is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: facet:genre`, the rule is triggered when users search for a genre, such as "comedy".



12
13
14
# File 'lib/algolia/models/search/condition.rb', line 12

def pattern
  @pattern
end