Class ElasticsearchAsyncSearchClient

java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.async_search.ElasticsearchAsyncSearchClient

public class ElasticsearchAsyncSearchClient
extends ApiClient
Client for the async_search namespace.
  • Constructor Details

    • ElasticsearchAsyncSearchClient

      public ElasticsearchAsyncSearchClient​(Transport transport)
  • Method Details

    • delete

      public DeleteResponse delete​(DeleteRequest request) throws java.io.IOException
      Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • delete

      public final DeleteResponse delete​(java.util.function.Function<DeleteRequest.Builder,​ObjectBuilder<DeleteRequest>> fn) throws java.io.IOException
      Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
      Parameters:
      fn - a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • get

      public <TDocument> GetResponse<TDocument> get​(GetRequest request, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException
      Retrieves the results of a previously submitted async search request given its ID.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • get

      public final <TDocument> GetResponse<TDocument> get​(java.util.function.Function<GetRequest.Builder,​ObjectBuilder<GetRequest>> fn, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException
      Retrieves the results of a previously submitted async search request given its ID.
      Parameters:
      fn - a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • status

      public <TDocument> StatusResponse<TDocument> status​(StatusRequest request, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException
      Retrieves the status of a previously submitted async search request given its ID.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • status

      public final <TDocument> StatusResponse<TDocument> status​(java.util.function.Function<StatusRequest.Builder,​ObjectBuilder<StatusRequest>> fn, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException
      Retrieves the status of a previously submitted async search request given its ID.
      Parameters:
      fn - a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • submit

      public <TDocument> SubmitResponse<TDocument> submit​(SubmitRequest request, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException
      Executes a search request asynchronously.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • submit

      public final <TDocument> SubmitResponse<TDocument> submit​(java.util.function.Function<SubmitRequest.Builder,​ObjectBuilder<SubmitRequest>> fn, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException
      Executes a search request asynchronously.
      Parameters:
      fn - a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co