WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
Delete Async Search APIedit
Requestedit
A 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 Executionedit
Asynchronous Executionedit
The 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:
Responseedit
The returned AcknowledgedResponse
indicates the acknowledgement of the request: