Package com.algolia.api
Class QuerySuggestionsClient
java.lang.Object
com.algolia.ApiClient
com.algolia.api.QuerySuggestionsClient
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionQuerySuggestionsClient
(String appId, String apiKey, String region) QuerySuggestionsClient
(String appId, String apiKey, String region, ClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptioncreateConfig
(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex) Create a new Query Suggestions configuration.createConfig
(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex, RequestOptions requestOptions) Create a new Query Suggestions configuration.createConfigAsync
(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex) (asynchronously) Create a new Query Suggestions configuration.createConfigAsync
(QuerySuggestionsConfigurationWithIndex querySuggestionsConfigurationWithIndex, RequestOptions requestOptions) (asynchronously) Create a new Query Suggestions configuration.This method allow you to send requests to the Algolia REST API.del
(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.(asynchronously) This method allow you to send requests to the Algolia REST API.delAsync
(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.(asynchronously) This method allow you to send requests to the Algolia REST API.deleteConfig
(String indexName) Delete a Query Suggestions configuration.deleteConfig
(String indexName, RequestOptions requestOptions) Delete a Query Suggestions configuration.deleteConfigAsync
(String indexName) (asynchronously) Delete a Query Suggestions configuration.deleteConfigAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Delete a Query Suggestions configuration.This method allow you to send requests to the Algolia REST API.get
(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.List all Query Suggestions configurations of your Algolia application.getAllConfigs
(RequestOptions requestOptions) List all Query Suggestions configurations of your Algolia application.(asynchronously) List all Query Suggestions configurations of your Algolia application.getAllConfigsAsync
(RequestOptions requestOptions) (asynchronously) List all Query Suggestions configurations of your Algolia application.(asynchronously) This method allow you to send requests to the Algolia REST API.getAsync
(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.(asynchronously) This method allow you to send requests to the Algolia REST API.Get a single Query Suggestions configuration.getConfig
(String indexName, RequestOptions requestOptions) Get a single Query Suggestions configuration.getConfigAsync
(String indexName) (asynchronously) Get a single Query Suggestions configuration.getConfigAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Get a single Query Suggestions configuration.getConfigStatus
(String indexName) Report the status of a Query Suggestions index.getConfigStatus
(String indexName, RequestOptions requestOptions) Report the status of a Query Suggestions index.getConfigStatusAsync
(String indexName) (asynchronously) Report the status of a Query Suggestions index.getConfigStatusAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Report the status of a Query Suggestions index.getLogFile
(String indexName) Get the logs for a single Query Suggestions index.getLogFile
(String indexName, RequestOptions requestOptions) Get the logs for a single Query Suggestions index.getLogFileAsync
(String indexName) (asynchronously) Get the logs for a single Query Suggestions index.getLogFileAsync
(String indexName, RequestOptions requestOptions) (asynchronously) Get the logs for a single Query Suggestions index.This method allow you to send requests to the Algolia REST API.post
(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.(asynchronously) This method allow you to send requests to the Algolia REST API.postAsync
(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.(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.put
(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.(asynchronously) This method allow you to send requests to the Algolia REST API.putAsync
(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.(asynchronously) This method allow you to send requests to the Algolia REST API.updateConfig
(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration) Update a QuerySuggestions configuration.updateConfig
(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration, RequestOptions requestOptions) Update a QuerySuggestions configuration.updateConfigAsync
(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration) (asynchronously) Update a QuerySuggestions configuration.updateConfigAsync
(String indexName, QuerySuggestionsConfiguration querySuggestionsConfiguration, RequestOptions requestOptions) (asynchronously) Update a QuerySuggestions configuration.Methods inherited from class com.algolia.ApiClient
addAlgoliaAgent, addDefaultHeader, buildCall, buildRequest, buildUrl, escapeString, executeAsync, executeAsync, executeAsync, getConnectTimeout, getReadTimeout, getWriteTimeout, isDebugging, parameterToString, processHeaderParams, removeAlgoliaAgent, serialize, setConnectTimeout, setHosts, setLogLevel, setReadTimeout, setWriteTimeout
-
Constructor Details
-
QuerySuggestionsClient
-
QuerySuggestionsClient
-
-
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 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.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
del
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
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
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
- 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
- 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
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
delAsync
(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
- 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
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 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.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
get
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
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
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
- 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
- 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
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAsync
(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
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAllConfigs
public List<QuerySuggestionsConfigurationResponse> getAllConfigs(RequestOptions requestOptions) throws AlgoliaRuntimeException 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
public CompletableFuture<List<QuerySuggestionsConfigurationResponse>> getAllConfigsAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException (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
public CompletableFuture<List<QuerySuggestionsConfigurationResponse>> getAllConfigsAsync() throws AlgoliaRuntimeException(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
public QuerySuggestionsConfigurationResponse getConfig(String indexName) throws AlgoliaRuntimeException 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
public CompletableFuture<QuerySuggestionsConfigurationResponse> getConfigAsync(String indexName) throws AlgoliaRuntimeException (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
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
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 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.- 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 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)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
post
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
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
- 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
- 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
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
postAsync
(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
- 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 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.- 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 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)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
put
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
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
- 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
- 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
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
putAsync
(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
- 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
-