Package com.algolia.model.search
Class Rule
java.lang.Object
com.algolia.model.search.Rule
Rule object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConditions(Condition conditionsItem) addValidity(TimeRange validityItem) boolean[Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule.Get consequenceDescription of the rule's purpose.Indicates whether to enable the rule.Unique identifier for a rule object.If you specify a validity period, the rule _only_ applies only during that period.inthashCode()setConditions(List<Condition> conditions) setConsequence(Consequence consequence) setDescription(String description) setEnabled(Boolean enabled) setObjectID(String objectID) setValidity(List<TimeRange> validity) toString()
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
setObjectID
-
getObjectID
Unique identifier for a rule object. -
setConditions
-
addConditions
-
getConditions
[Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule. -
setConsequence
-
getConsequence
Get consequence -
setDescription
-
getDescription
Description of the rule's purpose. This can be helpful for display in the Algolia dashboard. -
setEnabled
-
getEnabled
Indicates whether to enable the rule. If it isn't enabled, it isn't applied at query time. -
setValidity
-
addValidity
-
getValidity
If you specify a validity period, the rule _only_ applies only during that period. If specified, the array must not be empty. -
equals
-
hashCode
public int hashCode() -
toString
-