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()
      Algolia index name.
    • setThreshold

      public TrendingItemsQuery setThreshold(Integer threshold)
    • getThreshold

      @Nullable public Integer getThreshold()
      Recommendations with a confidence score lower than `threshold` won't appear in results. > **Note**: Each recommendation has a confidence score of 0 to 100. The closer the score is to 100, the more relevant the recommendations are. minimum: 0 maximum: 100
    • setMaxRecommendations

      public TrendingItemsQuery setMaxRecommendations(Integer maxRecommendations)
    • getMaxRecommendations

      @Nullable public Integer getMaxRecommendations()
      Maximum number of recommendations to retrieve. If 0, all recommendations will be returned.
    • setFacetName

      public TrendingItemsQuery setFacetName(String facetName)
    • getFacetName

      @Nullable public String getFacetName()
      Facet name for trending models.
    • setFacetValue

      public TrendingItemsQuery setFacetValue(String facetValue)
    • getFacetValue

      @Nullable public String getFacetValue()
      Facet value for trending models.
    • setModel

      public TrendingItemsQuery setModel(TrendingItemsModel model)
    • getModel

      @Nullable public TrendingItemsModel getModel()
      Get model
    • setQueryParameters

      public TrendingItemsQuery setQueryParameters(SearchParamsObject queryParameters)
    • getQueryParameters

      @Nullable public SearchParamsObject getQueryParameters()
      Get queryParameters
    • 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