Class AsyncSearchClient

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

public class AsyncSearchClient
extends java.lang.Object
  • Method Details

    • submit

      public AsyncSearchResponse submit​(SubmitAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options) throws java.io.IOException
      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:
      java.io.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)
      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 java.io.IOException
      Get an async search request. See the docs for more.
      Throws:
      java.io.IOException
    • getAsync

      public org.elasticsearch.client.Cancellable getAsync​(GetAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AsyncSearchResponse> listener)
      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 java.io.IOException
      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:
      java.io.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)
      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