Class AsyncSearch<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.async_search.AsyncSearch<TDocument>
- All Implemented Interfaces:
JsonpSerializable
public final class AsyncSearch<TDocument> extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AsyncSearch.Builder<TDocument>
Builder forAsyncSearch
. -
Constructor Summary
Constructors Constructor Description AsyncSearch(AsyncSearch.Builder<TDocument> builder)
AsyncSearch(java.util.function.Function<AsyncSearch.Builder<TDocument>,AsyncSearch.Builder<TDocument>> fn)
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,jakarta.json.JsonValue>
aggregations()
API name:aggregations
ClusterStatistics
clusters()
API name:_clusters
static <TDocument>
JsonpDeserializer<AsyncSearch<TDocument>>createAsyncSearchDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)
Create a json deserializer for AsyncSearchjava.util.Map<java.lang.String,JsonData>
fields()
API name:fields
HitsMetadata<TDocument>
hits()
Required - API name:hits
java.lang.Double
maxScore()
API name:max_score
java.lang.Long
numReducePhases()
API name:num_reduce_phases
java.lang.String
pitId()
API name:pit_id
Profile
profile()
API name:profile
java.lang.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(DelegatingDeserializer<AsyncSearch.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
ShardStatistics
shards()
Required - API name:_shards
java.util.Map<java.lang.String,java.util.List<Suggestion<TDocument>>>
suggest()
API name:suggest
java.lang.Boolean
terminatedEarly()
API name:terminated_early
boolean
timedOut()
Required - API name:timed_out
long
took()
Required - API name:took
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AsyncSearch
-
AsyncSearch
public AsyncSearch(java.util.function.Function<AsyncSearch.Builder<TDocument>,AsyncSearch.Builder<TDocument>> fn)
-
-
Method Details
-
aggregations
@Nullable public java.util.Map<java.lang.String,jakarta.json.JsonValue> aggregations()API name:aggregations
-
clusters
API name:_clusters
-
fields
API name:fields
-
hits
Required - API name:hits
-
maxScore
@Nullable public java.lang.Double maxScore()API name:max_score
-
numReducePhases
@Nullable public java.lang.Long numReducePhases()API name:num_reduce_phases
-
profile
API name:profile
-
pitId
@Nullable public java.lang.String pitId()API name:pit_id
-
scrollId
@Nullable public java.lang.String scrollId()API name:_scroll_id
-
shards
Required - API name:_shards
-
suggest
API name:suggest
-
terminatedEarly
@Nullable public java.lang.Boolean terminatedEarly()API name:terminated_early
-
timedOut
public boolean timedOut()Required - API name:timed_out
-
took
public long took()Required - API name:took
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
createAsyncSearchDeserializer
public static <TDocument> JsonpDeserializer<AsyncSearch<TDocument>> createAsyncSearchDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a json deserializer for AsyncSearch -
setupAsyncSearchDeserializer
protected static <TDocument> void setupAsyncSearchDeserializer(DelegatingDeserializer<AsyncSearch.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-