Package com.algolia.model.search
Class SearchRulesParams
java.lang.Object
com.algolia.model.search.SearchRulesParams
Rules search parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRequestOptions(Object requestOptionsItem) booleanGet anchoringRestricts responses to the specified [contextual rule](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#creating-contextual-rules).Restricts responses to enabled rules.Maximum number of hits per page.getPage()Requested page (the first page is page 0).getQuery()Rule object query.Request options to send with the API call.inthashCode()setAnchoring(Anchoring anchoring) setContext(String context) setEnabled(Boolean enabled) setHitsPerPage(Integer hitsPerPage) setRequestOptions(List<Object> requestOptions) toString()
-
Constructor Details
-
SearchRulesParams
public SearchRulesParams()
-
-
Method Details
-
setQuery
-
getQuery
Rule object query.- Returns:
- query
-
setAnchoring
-
getAnchoring
Get anchoring- Returns:
- anchoring
-
setContext
-
getContext
Restricts responses to the specified [contextual rule](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#creating-contextual-rules).- Returns:
- context
-
setPage
-
getPage
Requested page (the first page is page 0). minimum: 0- Returns:
- page
-
setHitsPerPage
-
getHitsPerPage
Maximum number of hits per page. minimum: 1 maximum: 1000- Returns:
- hitsPerPage
-
setEnabled
-
getEnabled
Restricts responses to enabled rules. When not specified (default), _all_ rules are retrieved.- Returns:
- enabled
-
setRequestOptions
-
addRequestOptions
-
getRequestOptions
Request options to send with the API call.- Returns:
- requestOptions
-
equals
-
hashCode
public int hashCode() -
toString
-