Class AsyncSearchResponse

All Implemented Interfaces:
Writeable, ChunkedToXContent, ChunkedToXContentObject, RefCounted, AsyncResponse<AsyncSearchResponse>

public class AsyncSearchResponse extends ActionResponse implements ChunkedToXContentObject, AsyncResponse<AsyncSearchResponse>
A response of an async search request.
  • Constructor Details

    • AsyncSearchResponse

      public AsyncSearchResponse(String id, boolean isPartial, boolean isRunning, long startTimeMillis, long expirationTimeMillis)
      Creates an AsyncSearchResponse with meta-information only (not-modified).
    • AsyncSearchResponse

      public AsyncSearchResponse(String id, SearchResponse searchResponse, Exception error, boolean isPartial, boolean isRunning, long startTimeMillis, long expirationTimeMillis)
      Creates a new AsyncSearchResponse
      Parameters:
      id - The id of the search for further retrieval, null if not stored.
      searchResponse - The actual search response.
      error - The error if the search failed, null if the search is running or has completed without failure.
      isPartial - Whether the searchResponse contains partial results.
      isRunning - Whether the search is running in the cluster.
      startTimeMillis - The start date of the search in milliseconds since epoch.
    • AsyncSearchResponse

      public AsyncSearchResponse(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details