Class SearchResult<TDocument>
java.lang.Object
org.opensearch.client.opensearch.core.search.SearchResult<TDocument>
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
- Direct Known Subclasses:
SearchResponse,SearchTemplateResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSearchResult.AbstractBuilder<TDocument,BuilderT extends SearchResult.AbstractBuilder<TDocument, BuilderT>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSearchResult(SearchResult.AbstractBuilder<TDocument, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionAPI name:aggregationsfinal ClusterStatisticsclusters()API name:_clustersAPI name:documentsfields()API name:fieldsfinal HitsMetadata<TDocument> hits()Required - API name:hitsfinal DoublemaxScore()API name:max_scorefinal LongAPI name:num_reduce_phasesfinal PhaseTookAPI name:phase_tookfinal 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,BuilderT extends SearchResult.AbstractBuilder<TDocument, BuilderT>>
voidsetupSearchResultDeserializer(ObjectDeserializer<BuilderT> op, JsonpDeserializer<TDocument> tDocumentDeserializer) final ShardStatisticsshards()Required - API name:_shardssuggest()API name:suggestfinal BooleanAPI name:terminated_earlyfinal booleantimedOut()Required - API name:timed_outfinal longtook()Required - API name:tookMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Constructor Details
-
SearchResult
-
-
Method Details
-
took
public final long took()Required - API name:took -
timedOut
public final boolean timedOut()Required - API name:timed_out -
shards
Required - API name:_shards -
hits
Required - API name:hits -
aggregations
API name:aggregations -
clusters
API name:_clusters -
documents
API name:documents -
fields
API name:fields -
maxScore
API name:max_score -
numReducePhases
API name:num_reduce_phases -
profile
API name:profile -
pitId
API name:pit_id -
scrollId
API name:_scroll_id -
suggest
API name:suggest -
terminatedEarly
API name:terminated_early -
phaseTook
API name:phase_took -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSearchResultDeserializer
protected static <TDocument,BuilderT extends SearchResult.AbstractBuilder<TDocument, void setupSearchResultDeserializerBuilderT>> (ObjectDeserializer<BuilderT> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-