Package com.algolia.model.recommend
Class SearchRecommendRulesParams
java.lang.Object
com.algolia.model.recommend.SearchRecommendRulesParams
Recommend rules parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Only search for rules with matching context.Whether to only show rules where the value of their `enabled` property matches this parameter.Include facets and facet values in the response.Filter expression.Maximum number of hits per page.Maximum number of values to return for each facet.getPage()
Requested page of the API response.getQuery()
Search query.int
hashCode()
setContext
(String context) setEnabled
(Boolean enabled) setFilters
(String filters) setHitsPerPage
(Integer hitsPerPage) setMaxValuesPerFacet
(Integer maxValuesPerFacet) toString()
-
Constructor Details
-
SearchRecommendRulesParams
public SearchRecommendRulesParams()
-
-
Method Details
-
setQuery
-
getQuery
Search query. -
setContext
-
getContext
Only search for rules with matching context. -
setPage
-
getPage
Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2. minimum: 0 -
setHitsPerPage
-
getHitsPerPage
Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2. minimum: 1 maximum: 1000 -
setEnabled
-
getEnabled
Whether to only show rules where the value of their `enabled` property matches this parameter. If absent, show all rules, regardless of their `enabled` property. -
setFilters
-
getFilters
Filter expression. This only searches for rules matching the filter expression. -
setFacets
-
addFacets
-
getFacets
Include facets and facet values in the response. Use `['*']` to include all facets. -
setMaxValuesPerFacet
-
getMaxValuesPerFacet
Maximum number of values to return for each facet. minimum: 1 maximum: 1000 -
equals
-
hashCode
public int hashCode() -
toString
-