IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete Async Search API
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Delete 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: