Class QuerySuggestionsClient

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

public class QuerySuggestionsClient extends ApiClient
  • Constructor Details

  • Method Details

    • createConfig

      public BaseResponse createConfig(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
      Parameters:
      querySuggestionsConfigurationWithIndex - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      BaseResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • createConfig

      public BaseResponse createConfig(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex) throws AlgoliaRuntimeException
      Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
      Parameters:
      querySuggestionsConfigurationWithIndex - (required)
      Returns:
      BaseResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • createConfigAsync

      public CompletableFuture<BaseResponse> createConfigAsync(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
      Parameters:
      querySuggestionsConfigurationWithIndex - (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
    • createConfigAsync

      public CompletableFuture<BaseResponse> createConfigAsync(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex) throws AlgoliaRuntimeException
      (asynchronously) Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
      Parameters:
      querySuggestionsConfigurationWithIndex - (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • 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
    • deleteConfig

      public BaseResponse deleteConfig(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
      Parameters:
      indexName - Query Suggestions index name. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      BaseResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • deleteConfig

      public BaseResponse deleteConfig(String indexName) throws AlgoliaRuntimeException
      Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
      Parameters:
      indexName - Query Suggestions index name. (required)
      Returns:
      BaseResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • deleteConfigAsync

      public CompletableFuture<BaseResponse> deleteConfigAsync(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
      Parameters:
      indexName - Query Suggestions index name. (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
    • deleteConfigAsync

      public CompletableFuture<BaseResponse> deleteConfigAsync(String indexName) throws AlgoliaRuntimeException
      (asynchronously) Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
      Parameters:
      indexName - Query Suggestions index name. (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
    • getAllConfigs

      List all Query Suggestions configurations of your Algolia application.
      Parameters:
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      List
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAllConfigs

      List all Query Suggestions configurations of your Algolia application.
      Returns:
      List
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAllConfigsAsync

      (asynchronously) List all Query Suggestions configurations of your Algolia application.
      Parameters:
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture<List> The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAllConfigsAsync

      (asynchronously) List all Query Suggestions configurations of your Algolia application.
      Returns:
      CompletableFuture<List> The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getConfig

      public QuerySuggestionsConfigurationResponse getConfig(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Get a single Query Suggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      QuerySuggestionsConfigurationResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getConfig

      Get a single Query Suggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (required)
      Returns:
      QuerySuggestionsConfigurationResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getConfigAsync

      public CompletableFuture<QuerySuggestionsConfigurationResponse> getConfigAsync(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Get a single Query Suggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (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
    • getConfigAsync

      (asynchronously) Get a single Query Suggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getConfigStatus

      public GetConfigStatus200Response getConfigStatus(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Report the status of a Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      GetConfigStatus200Response
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getConfigStatus

      public GetConfigStatus200Response getConfigStatus(String indexName) throws AlgoliaRuntimeException
      Report the status of a Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (required)
      Returns:
      GetConfigStatus200Response
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getConfigStatusAsync

      public CompletableFuture<GetConfigStatus200Response> getConfigStatusAsync(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Report the status of a Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (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
    • getConfigStatusAsync

      public CompletableFuture<GetConfigStatus200Response> getConfigStatusAsync(String indexName) throws AlgoliaRuntimeException
      (asynchronously) Report the status of a Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getLogFile

      public GetLogFile200Response getLogFile(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Get the logs for a single Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      GetLogFile200Response
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getLogFile

      public GetLogFile200Response getLogFile(String indexName) throws AlgoliaRuntimeException
      Get the logs for a single Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (required)
      Returns:
      GetLogFile200Response
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getLogFileAsync

      public CompletableFuture<GetLogFile200Response> getLogFileAsync(String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Get the logs for a single Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (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
    • getLogFileAsync

      public CompletableFuture<GetLogFile200Response> getLogFileAsync(String indexName) throws AlgoliaRuntimeException
      (asynchronously) Get the logs for a single Query Suggestions index.
      Parameters:
      indexName - Query Suggestions index name. (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
    • updateConfig

      public BaseResponse updateConfig(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Update a QuerySuggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (required)
      querySuggestionsConfiguration - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      BaseResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • updateConfig

      public BaseResponse updateConfig(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration) throws AlgoliaRuntimeException
      Update a QuerySuggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (required)
      querySuggestionsConfiguration - (required)
      Returns:
      BaseResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • updateConfigAsync

      public CompletableFuture<BaseResponse> updateConfigAsync(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Update a QuerySuggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (required)
      querySuggestionsConfiguration - (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
    • updateConfigAsync

      public CompletableFuture<BaseResponse> updateConfigAsync(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration) throws AlgoliaRuntimeException
      (asynchronously) Update a QuerySuggestions configuration.
      Parameters:
      indexName - Query Suggestions index name. (required)
      querySuggestionsConfiguration - (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call