Consequence

algoliasearch.recommend.Consequence
case class Consequence(params: Option[ConsequenceParams], promote: Option[Seq[Promote]], filterPromotes: Option[Boolean], hide: Option[Seq[ConsequenceHide]], userData: Option[Any])

Consequences of a rule.

Value parameters

filterPromotes

Only use in combination with the promote consequence. When true, promoted results will be restricted to match the filters of the current search. When false, the promoted results will show up regardless of the filters.

hide

Records to hide. By default, you can hide up to 50 records per rule.

promote

Records to promote.

userData

Custom JSON object that will be appended to the userData array in the response. This object isn't interpreted by the API. It's limited to 1kB of minified JSON.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product