Package com.algolia.api
Class QuerySuggestionsClient
java.lang.Object
com.algolia.ApiClient
com.algolia.api.QuerySuggestionsClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionQuerySuggestionsClient
(String appId, String apiKey, String region) QuerySuggestionsClient
(String appId, String apiKey, String region, ClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptioncreateConfig
(ConfigurationWithIndex configurationWithIndex) Creates a new Query Suggestions configuration.createConfig
(ConfigurationWithIndex configurationWithIndex, RequestOptions requestOptions) Creates a new Query Suggestions configuration.createConfigAsync
(ConfigurationWithIndex configurationWithIndex) (asynchronously) Creates a new Query Suggestions configuration.createConfigAsync
(ConfigurationWithIndex configurationWithIndex, RequestOptions requestOptions) (asynchronously) Creates a new Query Suggestions configuration.customDelete
(String path) This method allow you to send requests to the Algolia REST API.customDelete
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customDelete
(String path, Map<String, Object> parameters) This method allow you to send requests to the Algolia REST API.customDelete
(String path, Map<String, Object> parameters, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path, Map<String, Object> parameters) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path, Map<String, Object> parameters, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customGet
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customGetAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync
(String path, Map<String, Object> parameters) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync
(String path, Map<String, Object> parameters, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customPost
(String path) This method allow you to send requests to the Algolia REST API.customPost
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customPost
(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customPostAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customPostAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.customPostAsync
(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customPut
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customPutAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customPutAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.customPutAsync
(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.deleteConfig
(String indexName) Deletes a Query Suggestions configuration.deleteConfig
(String indexName, RequestOptions requestOptions) Deletes a Query Suggestions configuration.deleteConfigAsync
(String indexName) (asynchronously) Deletes a Query Suggestions configuration.deleteConfigAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Deletes a Query Suggestions configuration.Retrieves all Query Suggestions configurations of your Algolia application.getAllConfigs
(RequestOptions requestOptions) Retrieves all Query Suggestions configurations of your Algolia application.(asynchronously) Retrieves all Query Suggestions configurations of your Algolia application.getAllConfigsAsync
(RequestOptions requestOptions) (asynchronously) Retrieves all Query Suggestions configurations of your Algolia application.Retrieves a single Query Suggestions configuration by its index name.getConfig
(String indexName, RequestOptions requestOptions) Retrieves a single Query Suggestions configuration by its index name.getConfigAsync
(String indexName) (asynchronously) Retrieves a single Query Suggestions configuration by its index name.getConfigAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Retrieves a single Query Suggestions configuration by its index name.getConfigStatus
(String indexName) Reports the status of a Query Suggestions index.getConfigStatus
(String indexName, RequestOptions requestOptions) Reports the status of a Query Suggestions index.getConfigStatusAsync
(String indexName) (asynchronously) Reports the status of a Query Suggestions index.getConfigStatusAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Reports the status of a Query Suggestions index.getLogFile
(String indexName) Retrieves the logs for a single Query Suggestions index.getLogFile
(String indexName, RequestOptions requestOptions) Retrieves the logs for a single Query Suggestions index.getLogFileAsync
(String indexName) (asynchronously) Retrieves the logs for a single Query Suggestions index.getLogFileAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Retrieves the logs for a single Query Suggestions index.updateConfig
(String indexName, Configuration configuration) Updates a QuerySuggestions configuration.updateConfig
(String indexName, Configuration configuration, RequestOptions requestOptions) Updates a QuerySuggestions configuration.updateConfigAsync
(String indexName, Configuration configuration) (asynchronously) Updates a QuerySuggestions configuration.updateConfigAsync
(String indexName, Configuration configuration, RequestOptions requestOptions) (asynchronously) Updates a QuerySuggestions configuration.Methods inherited from class com.algolia.ApiClient
close, executeAsync, executeAsync, setClientApiKey
-
Constructor Details
-
QuerySuggestionsClient
-
QuerySuggestionsClient
-
-
Method Details
-
createConfig
public BaseResponse createConfig(@Nonnull ConfigurationWithIndex configurationWithIndex, RequestOptions requestOptions) throws AlgoliaRuntimeException Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.- Parameters:
configurationWithIndex
- (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
createConfig
public BaseResponse createConfig(@Nonnull ConfigurationWithIndex configurationWithIndex) throws AlgoliaRuntimeException Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.- Parameters:
configurationWithIndex
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
createConfigAsync
public CompletableFuture<BaseResponse> createConfigAsync(@Nonnull ConfigurationWithIndex configurationWithIndex, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.- Parameters:
configurationWithIndex
- (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
createConfigAsync
public CompletableFuture<BaseResponse> createConfigAsync(@Nonnull ConfigurationWithIndex configurationWithIndex) throws AlgoliaRuntimeException (asynchronously) Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.- Parameters:
configurationWithIndex
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDelete
public Object customDelete(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDelete
public Object customDelete(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDelete
public Object customDelete(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDelete
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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGet
public Object customGet(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGet
public Object customGet(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGet
public Object customGet(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGet
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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPost
public Object customPost(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPost
public Object customPost(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPost
public Object customPost(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPost
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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPut
public Object customPut(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPut
public Object customPut(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPut
public Object customPut(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPut
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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteConfig
public BaseResponse deleteConfig(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.- Parameters:
indexName
- Query Suggestions index name. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteConfig
Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteConfigAsync
public CompletableFuture<BaseResponse> deleteConfigAsync(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.- Parameters:
indexName
- Query Suggestions index name. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteConfigAsync
public CompletableFuture<BaseResponse> deleteConfigAsync(@Nonnull String indexName) throws AlgoliaRuntimeException (asynchronously) Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAllConfigs
public List<ConfigurationResponse> getAllConfigs(RequestOptions requestOptions) throws AlgoliaRuntimeException Retrieves 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAllConfigs
Retrieves all Query Suggestions configurations of your Algolia application.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAllConfigsAsync
public CompletableFuture<List<ConfigurationResponse>> getAllConfigsAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Retrieves 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAllConfigsAsync
public CompletableFuture<List<ConfigurationResponse>> getAllConfigsAsync() throws AlgoliaRuntimeException(asynchronously) Retrieves all Query Suggestions configurations of your Algolia application.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfig
public ConfigurationResponse getConfig(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException Retrieves a single Query Suggestions configuration by its index name.- Parameters:
indexName
- Query Suggestions index name. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfig
Retrieves a single Query Suggestions configuration by its index name.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfigAsync
public CompletableFuture<ConfigurationResponse> getConfigAsync(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Retrieves a single Query Suggestions configuration by its index name.- Parameters:
indexName
- Query Suggestions index name. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfigAsync
public CompletableFuture<ConfigurationResponse> getConfigAsync(@Nonnull String indexName) throws AlgoliaRuntimeException (asynchronously) Retrieves a single Query Suggestions configuration by its index name.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfigStatus
public ConfigStatus getConfigStatus(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException Reports 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfigStatus
Reports the status of a Query Suggestions index.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfigStatusAsync
public CompletableFuture<ConfigStatus> getConfigStatusAsync(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Reports 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getConfigStatusAsync
public CompletableFuture<ConfigStatus> getConfigStatusAsync(@Nonnull String indexName) throws AlgoliaRuntimeException (asynchronously) Reports the status of a Query Suggestions index.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLogFile
public LogFile getLogFile(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException Retrieves 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLogFile
Retrieves the logs for a single Query Suggestions index.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLogFileAsync
public CompletableFuture<LogFile> getLogFileAsync(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Retrieves 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.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLogFileAsync
public CompletableFuture<LogFile> getLogFileAsync(@Nonnull String indexName) throws AlgoliaRuntimeException (asynchronously) Retrieves the logs for a single Query Suggestions index.- Parameters:
indexName
- Query Suggestions index name. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
updateConfig
public BaseResponse updateConfig(@Nonnull String indexName, @Nonnull Configuration configuration, RequestOptions requestOptions) throws AlgoliaRuntimeException Updates a QuerySuggestions configuration.- Parameters:
indexName
- Query Suggestions index name. (required)configuration
- (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
updateConfig
public BaseResponse updateConfig(@Nonnull String indexName, @Nonnull Configuration configuration) throws AlgoliaRuntimeException Updates a QuerySuggestions configuration.- Parameters:
indexName
- Query Suggestions index name. (required)configuration
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
updateConfigAsync
public CompletableFuture<BaseResponse> updateConfigAsync(@Nonnull String indexName, @Nonnull Configuration configuration, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Updates a QuerySuggestions configuration.- Parameters:
indexName
- Query Suggestions index name. (required)configuration
- (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
updateConfigAsync
public CompletableFuture<BaseResponse> updateConfigAsync(@Nonnull String indexName, @Nonnull Configuration configuration) throws AlgoliaRuntimeException (asynchronously) Updates a QuerySuggestions configuration.- Parameters:
indexName
- Query Suggestions index name. (required)configuration
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-