Package com.algolia.model.recommend
Class Consequence
java.lang.Object
com.algolia.model.recommend.Consequence
[Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences)
of a rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddHide
(ConsequenceHide hideItem) addPromote
(Promote promoteItem) boolean
Only use in combination with the `promote` consequence.getHide()
Records to hide.Get paramsRecords to promote.Custom JSON object that will be appended to the userData array in the response.int
hashCode()
setFilterPromotes
(Boolean filterPromotes) setHide
(List<ConsequenceHide> hide) setParams
(ConsequenceParams params) setPromote
(List<Promote> promote) setUserData
(Object userData) toString()
-
Constructor Details
-
Consequence
public Consequence()
-
-
Method Details
-
setParams
-
getParams
Get params- Returns:
- params
-
setPromote
-
addPromote
-
getPromote
Records to promote.- Returns:
- promote
-
setFilterPromotes
-
getFilterPromotes
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.- Returns:
- filterPromotes
-
setHide
-
addHide
-
getHide
Records to hide. By default, you can hide up to 50 records per rule.- Returns:
- hide
-
setUserData
-
getUserData
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.- Returns:
- userData
-
equals
-
hashCode
public int hashCode() -
toString
-