Class RecommendClient

java.lang.Object
com.algolia.ApiClient
com.algolia.api.RecommendClient

public class RecommendClient extends ApiClient
  • Constructor Details

  • Method Details

    • del

      public Object del(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • del

      public Object del(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • del

      public Object del(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • del

      public Object del(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • deleteRecommendRule

      public DeletedAtResponse deleteRecommendRule(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      DeletedAtResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • deleteRecommendRule

      public DeletedAtResponse deleteRecommendRule(String indexName, RecommendModels model, String objectID) throws AlgoliaRuntimeException
      Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      Returns:
      DeletedAtResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • deleteRecommendRuleAsync

      public CompletableFuture<DeletedAtResponse> deleteRecommendRuleAsync(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • deleteRecommendRuleAsync

      public CompletableFuture<DeletedAtResponse> deleteRecommendRuleAsync(String indexName, RecommendModels model, String objectID) throws AlgoliaRuntimeException
      (asynchronously) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendRule

      public RuleResponse getRecommendRule(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      RuleResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendRule

      public RuleResponse getRecommendRule(String indexName, RecommendModels model, String objectID) throws AlgoliaRuntimeException
      Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      Returns:
      RuleResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendRuleAsync

      public CompletableFuture<RuleResponse> getRecommendRuleAsync(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendRuleAsync

      public CompletableFuture<RuleResponse> getRecommendRuleAsync(String indexName, RecommendModels model, String objectID) throws AlgoliaRuntimeException
      (asynchronously) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      objectID - Unique record (object) identifier. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendStatus

      public GetRecommendTaskResponse getRecommendStatus(String indexName, RecommendModels model, Long taskID, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      taskID - Unique identifier of a task. Numeric value (up to 64bits). (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      GetRecommendTaskResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendStatus

      public GetRecommendTaskResponse getRecommendStatus(String indexName, RecommendModels model, Long taskID) throws AlgoliaRuntimeException
      Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      taskID - Unique identifier of a task. Numeric value (up to 64bits). (required)
      Returns:
      GetRecommendTaskResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendStatusAsync

      public CompletableFuture<GetRecommendTaskResponse> getRecommendStatusAsync(String indexName, RecommendModels model, Long taskID, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      taskID - Unique identifier of a task. Numeric value (up to 64bits). (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendStatusAsync

      public CompletableFuture<GetRecommendTaskResponse> getRecommendStatusAsync(String indexName, RecommendModels model, Long taskID) throws AlgoliaRuntimeException
      (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      taskID - Unique identifier of a task. Numeric value (up to 64bits). (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendations

      public GetRecommendationsResponse getRecommendations(GetRecommendationsParams getRecommendationsParams, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).
      Parameters:
      getRecommendationsParams - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      GetRecommendationsResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendations

      public GetRecommendationsResponse getRecommendations(GetRecommendationsParams getRecommendationsParams) throws AlgoliaRuntimeException
      Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).
      Parameters:
      getRecommendationsParams - (required)
      Returns:
      GetRecommendationsResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendationsAsync

      public CompletableFuture<GetRecommendationsResponse> getRecommendationsAsync(GetRecommendationsParams getRecommendationsParams, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).
      Parameters:
      getRecommendationsParams - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getRecommendationsAsync

      public CompletableFuture<GetRecommendationsResponse> getRecommendationsAsync(GetRecommendationsParams getRecommendationsParams) throws AlgoliaRuntimeException
      (asynchronously) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).
      Parameters:
      getRecommendationsParams - (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRules

      public SearchRecommendRulesResponse searchRecommendRules(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams, RequestOptions requestOptions) throws AlgoliaRuntimeException
      List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      searchRecommendRulesParams - (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      SearchRecommendRulesResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRules

      public SearchRecommendRulesResponse searchRecommendRules(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams) throws AlgoliaRuntimeException
      List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      searchRecommendRulesParams - (optional)
      Returns:
      SearchRecommendRulesResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRules

      public SearchRecommendRulesResponse searchRecommendRules(String indexName, RecommendModels model, RequestOptions requestOptions) throws AlgoliaRuntimeException
      List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      SearchRecommendRulesResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRules

      public SearchRecommendRulesResponse searchRecommendRules(String indexName, RecommendModels model) throws AlgoliaRuntimeException
      List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      Returns:
      SearchRecommendRulesResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRulesAsync

      public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      searchRecommendRulesParams - (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRulesAsync

      public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams) throws AlgoliaRuntimeException
      (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      searchRecommendRulesParams - (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRulesAsync

      public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(String indexName, RecommendModels model, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • searchRecommendRulesAsync

      public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(String indexName, RecommendModels model) throws AlgoliaRuntimeException
      (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
      Parameters:
      indexName - Index on which to perform the request. (required)
      model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call