Class AsyncSearch<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.async_search.AsyncSearch<TDocument>
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class AsyncSearch<TDocument> extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsyncSearch.Builder<TDocument>Builder forAsyncSearch. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<AsyncSearch<java.lang.Object>>_DESERIALIZERJson deserializer forAsyncSearchbased on named deserializers provided by the callingJsonMapper. -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Aggregate>aggregations()API name:aggregationsClusterStatisticsclusters()API name:_clustersstatic <TDocument>
JsonpDeserializer<AsyncSearch<TDocument>>createAsyncSearchDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a JSON deserializer for AsyncSearchjava.util.Map<java.lang.String,JsonData>fields()API name:fieldsHitsMetadata<TDocument>hits()Required - API name:hitsjava.lang.DoublemaxScore()API name:max_scorejava.lang.LongnumReducePhases()API name:num_reduce_phasesstatic <TDocument>
AsyncSearch<TDocument>of(java.util.function.Function<AsyncSearch.Builder<TDocument>,ObjectBuilder<AsyncSearch<TDocument>>> fn)java.lang.StringpitId()API name:pit_idProfileprofile()API name:profilejava.lang.StringscrollId()API name:_scroll_idvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <TDocument>
voidsetupAsyncSearchDeserializer(ObjectDeserializer<AsyncSearch.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)ShardStatisticsshards()Required - API name:_shardsjava.util.Map<java.lang.String,java.util.List<Suggestion<TDocument>>>suggest()API name:suggestjava.lang.BooleanterminatedEarly()API name:terminated_earlybooleantimedOut()Required - API name:timed_outlongtook()Required - API name:tookjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forAsyncSearchbased on named deserializers provided by the callingJsonMapper.
-
-
Method Details
-
of
public static <TDocument> AsyncSearch<TDocument> of(java.util.function.Function<AsyncSearch.Builder<TDocument>,ObjectBuilder<AsyncSearch<TDocument>>> fn) -
aggregations
API name:aggregations -
clusters
API name:_clusters -
fields
API name:fields -
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
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
Required - API name:_shards -
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
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
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)
-