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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<AsyncSearch<Object>>
Json deserializer forAsyncSearch
based on named deserializers provided by the callingJsonMapper
. -
Method Summary
Modifier and TypeMethodDescriptionPartial aggregations results, coming from the shards that have already completed the execution of the query.final ClusterStatistics
clusters()
API name:_clusters
static <TDocument>
JsonpDeserializer<AsyncSearch<TDocument>>createAsyncSearchDeserializer
(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for AsyncSearchfields()
API name:fields
final HitsMetadata<TDocument>
hits()
Required - API name:hits
final Double
maxScore()
API name:max_score
final Long
Indicates how many reductions of the results have been performed.static <TDocument>
AsyncSearch<TDocument>of
(Function<AsyncSearch.Builder<TDocument>, ObjectBuilder<AsyncSearch<TDocument>>> fn) final String
pitId()
API name:pit_id
final Profile
profile()
API name:profile
final String
scrollId()
API name:_scroll_id
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <TDocument>
voidsetupAsyncSearchDeserializer
(ObjectDeserializer<AsyncSearch.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer) final ShardStatistics
shards()
Required - Indicates how many shards have run the query.final Map<String,
List<Suggestion<TDocument>>> suggest()
API name:suggest
final Boolean
API name:terminated_early
final boolean
timedOut()
Required - API name:timed_out
final long
took()
Required - API name:took
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAsyncSearch
based 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 the execution of 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:
serialize
in 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)
-