Class AsyncSearch<TDocument>

All Implemented Interfaces:

public class AsyncSearch<TDocument>
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Method Details

    • of

      public static <TDocument> AsyncSearch<TDocument> of​(java.util.function.Function<AsyncSearch.Builder<TDocument>,​ObjectBuilder<AsyncSearch<TDocument>>> fn)
    • aggregations

      public final java.util.Map<java.lang.String,​Aggregate> aggregations()
      API name: aggregations
    • clusters

      @Nullable public final ClusterStatistics clusters()
      API name: _clusters
    • fields

      public final java.util.Map<java.lang.String,​JsonData> fields()
      API name: fields
    • hits

      public final HitsMetadata<TDocument> hits()
      Required - API name: hits
    • maxScore

      @Nullable public final java.lang.Double maxScore()
      API name: max_score
    • numReducePhases

      @Nullable public final java.lang.Long numReducePhases()
      API name: num_reduce_phases
    • profile

      @Nullable public final Profile profile()
      API name: profile
    • pitId

      @Nullable public final java.lang.String pitId()
      API name: pit_id
    • scrollId

      @Nullable public final java.lang.String scrollId()
      API name: _scroll_id
    • shards

      public final ShardStatistics shards()
      Required - API name: _shards
    • suggest

      public final java.util.Map<java.lang.String,​java.util.List<Suggestion<TDocument>>> suggest()
      API name: suggest
    • terminatedEarly

      @Nullable public final java.lang.Boolean terminatedEarly()
      API name: terminated_early
    • timedOut

      public final boolean timedOut()
      Required - API name: timed_out
    • took

      public final long took()
      Required - API name: took
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • createAsyncSearchDeserializer

      public static <TDocument> JsonpDeserializer<AsyncSearch<TDocument>> createAsyncSearchDeserializer​(JsonpDeserializer<TDocument> tDocumentDeserializer)
      Create a JSON deserializer for AsyncSearch
    • setupAsyncSearchDeserializer

      protected static <TDocument> void setupAsyncSearchDeserializer​(ObjectDeserializer<AsyncSearch.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)