Class TrendingFacetsQuery

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

public class TrendingFacetsQuery extends Object implements RecommendationsRequest
TrendingFacetsQuery
  • Constructor Details

    • TrendingFacetsQuery

      public TrendingFacetsQuery()
  • Method Details

    • setIndexName

      public TrendingFacetsQuery setIndexName(String indexName)
    • getIndexName

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

      public TrendingFacetsQuery 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 TrendingFacetsQuery 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 TrendingFacetsQuery setQueryParameters(RecommendSearchParams queryParameters)
    • getQueryParameters

      @Nullable public RecommendSearchParams getQueryParameters()
      Get queryParameters
    • setFacetName

      public TrendingFacetsQuery setFacetName(Object facetName)
    • getFacetName

      @Nullable public Object getFacetName()
      Facet attribute for which to retrieve trending facet values.
    • setModel

      public TrendingFacetsQuery setModel(TrendingFacetsModel model)
    • getModel

      @Nonnull public TrendingFacetsModel getModel()
      Get model
    • setFallbackParameters

      public TrendingFacetsQuery setFallbackParameters(FallbackParams fallbackParameters)
    • getFallbackParameters

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