Class BaseRecommendRequest

java.lang.Object
com.algolia.model.recommend.BaseRecommendRequest

public class BaseRecommendRequest extends Object
BaseRecommendRequest
  • Constructor Details

    • BaseRecommendRequest

      public BaseRecommendRequest()
  • Method Details

    • setIndexName

      public BaseRecommendRequest setIndexName(String indexName)
    • getIndexName

      @Nonnull public String getIndexName()
      Algolia index name.
      Returns:
      indexName
    • setThreshold

      public BaseRecommendRequest 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
      Returns:
      threshold
    • setMaxRecommendations

      public BaseRecommendRequest setMaxRecommendations(Integer maxRecommendations)
    • getMaxRecommendations

      @Nullable public Integer getMaxRecommendations()
      Maximum number of recommendations to retrieve. If 0, all recommendations will be returned.
      Returns:
      maxRecommendations
    • 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