Class AsyncSearch<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.async_search.AsyncSearch<TDocument>
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AsyncSearch<TDocument>
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AsyncSearch<Object>>Json deserializer forAsyncSearchbased on named deserializers provided by the callingJsonMapper. -
Method Summary
Modifier and TypeMethodDescriptionPartial aggregations results, coming from the shards that have already completed running the query.final ClusterStatisticsclusters()API name:_clustersstatic <TDocument>
JsonpDeserializer<AsyncSearch<TDocument>>createAsyncSearchDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for AsyncSearchfields()API name:fieldsfinal HitsMetadata<TDocument>hits()Required - API name:hitsfinal DoublemaxScore()API name:max_scorefinal LongIndicates how many reductions of the results have been performed.static <TDocument>
AsyncSearch<TDocument>of(Function<AsyncSearch.Builder<TDocument>, ObjectBuilder<AsyncSearch<TDocument>>> fn) final StringpitId()API name:pit_idfinal Profileprofile()API name:profilefinal 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) final ShardStatisticsshards()Required - Indicates how many shards have run the query.final Map<String,List<Suggestion<TDocument>>> suggest()API name:suggestfinal BooleanAPI name:terminated_earlyfinal booleantimedOut()Required - API name:timed_outfinal longtook()Required - API name:tooktoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAsyncSearchbased on named deserializers provided by the callingJsonMapper.
-
-
Method Details
-
of
public static <TDocument> AsyncSearch<TDocument> of(Function<AsyncSearch.Builder<TDocument>, ObjectBuilder<AsyncSearch<TDocument>>> fn) -
aggregations
Partial aggregations results, coming from the shards that have already completed running the query.API name:
aggregations -
clusters
API name:_clusters -
fields
API name:fields -
hits
Required - API name:hits -
maxScore
API name:max_score -
numReducePhases
Indicates how many reductions of the results have been performed. If this number increases compared to the last retrieved results for a get asynch search request, you can expect additional results included in the search response.API name:
num_reduce_phases -
profile
API name:profile -
pitId
API name:pit_id -
scrollId
API name:_scroll_id -
shards
Required - Indicates how many shards have run the query. Note that in order for shard results to be included in the search response, they need to be reduced first.API name:
_shards -
suggest
API name:suggest -
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
-
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)
-