Class AsyncSearchClient

java.lang.Object
org.elasticsearch.client.AsyncSearchClient

@Deprecated public class AsyncSearchClient extends Object
Deprecated.
The High Level Rest Client is deprecated in favor of the Elasticsearch Java API Client
  • Method Details

    • submit

      public AsyncSearchResponse submit(SubmitAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Submit a new async search request. See the docs for more.
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • submitAsync

      public org.elasticsearch.client.Cancellable submitAsync(SubmitAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AsyncSearchResponse> listener)
      Deprecated.
      Asynchronously submit a new async search request. See the docs for more. the docs for more.
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • get

      public AsyncSearchResponse get(GetAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Get an async search request. See the docs for more.
      Throws:
      IOException
    • getAsync

      public org.elasticsearch.client.Cancellable getAsync(GetAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AsyncSearchResponse> listener)
      Deprecated.
      Asynchronously get an async search request. See the docs for more.
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • delete

      public AcknowledgedResponse delete(DeleteAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Delete an async search request. See the docs for more.
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • deleteAsync

      public org.elasticsearch.client.Cancellable deleteAsync(DeleteAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener)
      Deprecated.
      Asynchronously delete an async search request. See the docs for more.
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request