WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
Delete Async Search API
editDelete Async Search API
editRequest
editA DeleteAsyncSearchRequest allows deleting a running asynchronous search task using
its id. Required arguments are the id of a running search:
DeleteAsyncSearchRequest request = new DeleteAsyncSearchRequest(id);
Synchronous Execution
editAsynchronous Execution
editThe asynchronous execution of a DeleteAsyncSearchRequest allows to use an
ActionListener to be called back when the submit request returns:
The asynchronous method does not block and returns immediately. Once it is
completed the ActionListener is called back using the onResponse method
if the execution successfully completed or using the onFailure method if
it failed.
A typical listener for AcknowledgedResponse looks like:
Response
editThe returned AcknowledgedResponse indicates the acknowledgement of the request: