Class TrendingItemsQuery

java.lang.Object
com.algolia.model.recommend.TrendingItemsQuery
All Implemented Interfaces:
RecommendationsRequest

public class TrendingItemsQuery extends Object implements RecommendationsRequest
TrendingItemsQuery
  • Constructor Details

    • TrendingItemsQuery

      public TrendingItemsQuery()
  • Method Details

    • setIndexName

      public TrendingItemsQuery setIndexName(String indexName)
    • getIndexName

      @Nonnull public String getIndexName()
      Index name (case-sensitive).
    • setThreshold

      public TrendingItemsQuery setThreshold(Double threshold)
    • getThreshold

      @Nonnull public Double getThreshold()
      Minimum score a recommendation must have to be included in the response. minimum: 0 maximum: 100
    • setMaxRecommendations

      public TrendingItemsQuery setMaxRecommendations(Integer maxRecommendations)
    • getMaxRecommendations

      @Nullable public Integer 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

      public TrendingItemsQuery setQueryParameters(SearchParams queryParameters)
    • getQueryParameters

      @Nullable public SearchParams getQueryParameters()
      Get queryParameters
    • setFacetName

      public TrendingItemsQuery setFacetName(String facetName)
    • getFacetName

      @Nullable public String getFacetName()
      Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
    • setFacetValue

      public TrendingItemsQuery setFacetValue(String facetValue)
    • getFacetValue

      @Nullable public String getFacetValue()
      Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
    • setModel

      public TrendingItemsQuery setModel(TrendingItemsModel model)
    • getModel

      @Nonnull public TrendingItemsModel getModel()
      Get model
    • setFallbackParameters

      public TrendingItemsQuery setFallbackParameters(SearchParamsObject fallbackParameters)
    • getFallbackParameters

      @Nullable public SearchParamsObject getFallbackParameters()
      Get fallbackParameters
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object