Class RecommendationsQuery

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

public class RecommendationsQuery extends Object
RecommendationsQuery
  • Constructor Details

    • RecommendationsQuery

      public RecommendationsQuery()
  • Method Details

    • setModel

      public RecommendationsQuery setModel(RecommendationModels model)
    • getModel

      @Nonnull public RecommendationModels getModel()
      Get model
      Returns:
      model
    • setObjectID

      public RecommendationsQuery setObjectID(String objectID)
    • getObjectID

      @Nonnull public String getObjectID()
      Unique object identifier.
      Returns:
      objectID
    • setQueryParameters

      public RecommendationsQuery setQueryParameters(SearchParamsObject queryParameters)
    • getQueryParameters

      @Nullable public SearchParamsObject getQueryParameters()
      Get queryParameters
      Returns:
      queryParameters
    • setFallbackParameters

      public RecommendationsQuery setFallbackParameters(SearchParamsObject fallbackParameters)
    • getFallbackParameters

      @Nullable public SearchParamsObject getFallbackParameters()
      Get fallbackParameters
      Returns:
      fallbackParameters
    • setIndexName

      public RecommendationsQuery setIndexName(String indexName)
    • getIndexName

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

      public RecommendationsQuery 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 RecommendationsQuery 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