Package com.algolia.model.recommend
Class TrendingItemsQuery
java.lang.Object
com.algolia.model.recommend.TrendingItemsQuery
- All Implemented Interfaces:
RecommendationsRequest
TrendingItemsQuery
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.algolia.model.recommend.RecommendationsRequest
RecommendationsRequest.Deserializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Facet attribute.Facet value.Get fallbackParametersIndex name (case-sensitive).Maximum number of recommendations to retrieve.getModel()
Get modelGet queryParametersMinimum score a recommendation must have to be included in the response.int
hashCode()
setFacetName
(String facetName) setFacetValue
(String facetValue) setFallbackParameters
(SearchParamsObject fallbackParameters) setIndexName
(String indexName) setMaxRecommendations
(Integer maxRecommendations) setModel
(TrendingItemsModel model) setQueryParameters
(SearchParams queryParameters) setThreshold
(Double threshold) toString()
-
Constructor Details
-
TrendingItemsQuery
public TrendingItemsQuery()
-
-
Method Details
-
setIndexName
-
getIndexName
Index name (case-sensitive). -
setThreshold
-
getThreshold
Minimum score a recommendation must have to be included in the response. minimum: 0 maximum: 100 -
setMaxRecommendations
-
getMaxRecommendations
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value. minimum: 1 maximum: 1000 -
setQueryParameters
-
getQueryParameters
Get queryParameters -
setFacetName
-
getFacetName
Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned. -
setFacetValue
-
getFacetValue
Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned. -
setModel
-
getModel
Get model -
setFallbackParameters
-
getFallbackParameters
Get fallbackParameters -
equals
-
hashCode
public int hashCode() -
toString
-