Class SearchResult.AbstractBuilder<TDocument,BuilderT extends SearchResult.AbstractBuilder<TDocument,BuilderT>>
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.SearchResult.AbstractBuilder<TDocument,BuilderT>
- Direct Known Subclasses:
MultiSearchItem.Builder,ScrollResponse.Builder,SearchResponse.Builder,SearchTemplateResponse.Builder
- Enclosing class:
SearchResult<TDocument>
public abstract static class SearchResult.AbstractBuilder<TDocument,BuilderT extends SearchResult.AbstractBuilder<TDocument,BuilderT>>
extends ObjectBuilderBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderTAPI name:aggregationsfinal BuilderTaggregations(String key, Aggregate value) API name:aggregationsfinal BuilderTaggregations(Map<String, Aggregate> map) API name:aggregationsfinal BuilderTAPI name:_clustersfinal BuilderTclusters(ClusterStatistics value) API name:_clustersfinal BuilderTAPI name:documentsfinal BuilderTAPI name:documentsfinal BuilderTAPI name:fieldsfinal BuilderTAPI name:fieldsfinal BuilderTRequired - API name:hitsfinal BuilderThits(HitsMetadata<TDocument> value) Required - API name:hitsfinal BuilderTAPI name:max_scorefinal BuilderTnumReducePhases(Long value) API name:num_reduce_phasesfinal BuilderTAPI name:phase_tookfinal BuilderTAPI name:phase_tookfinal BuilderTAPI name:pit_idfinal BuilderTAPI name:profilefinal BuilderTAPI name:profilefinal BuilderTAPI name:_scroll_idprotected abstract BuilderTself()final BuilderTRequired - API name:_shardsfinal BuilderTshards(ShardStatistics value) Required - API name:_shardsfinal BuilderTAPI name:suggestfinal BuilderTAPI name:suggestfinal BuilderTSerializer for TDocument.final BuilderTterminatedEarly(Boolean value) API name:terminated_earlyfinal BuilderTtimedOut(boolean value) Required - API name:timed_outfinal BuilderTtook(long value) Required - API name:tookMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
took
Required - API name:took -
timedOut
Required - API name:timed_out -
shards
Required - API name:_shards -
shards
Required - API name:_shards -
hits
Required - API name:hits -
hits
public final BuilderT hits(Function<HitsMetadata.Builder<TDocument>, ObjectBuilder<HitsMetadata<TDocument>>> fn) Required - API name:hits -
aggregations
API name:aggregationsAdds all entries of
maptoaggregations. -
aggregations
API name:aggregationsAdds an entry to
aggregations. -
aggregations
public final BuilderT aggregations(String key, Function<Aggregate.Builder, ObjectBuilder<Aggregate>> fn) API name:aggregationsAdds an entry to
aggregationsusing a builder lambda. -
clusters
API name:_clusters -
clusters
public final BuilderT clusters(Function<ClusterStatistics.Builder, ObjectBuilder<ClusterStatistics>> fn) API name:_clusters -
documents
API name:documentsAdds all elements of
listtodocuments. -
documents
API name:documentsAdds one or more values to
documents. -
fields
API name:fieldsAdds all entries of
maptofields. -
fields
API name:fieldsAdds an entry to
fields. -
maxScore
API name:max_score -
numReducePhases
API name:num_reduce_phases -
profile
API name:profile -
profile
API name:profile -
pitId
API name:pit_id -
scrollId
API name:_scroll_id -
suggest
API name:suggestAdds all entries of
maptosuggest. -
suggest
API name:suggestAdds an entry to
suggest. -
terminatedEarly
API name:terminated_early -
tDocumentSerializer
Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
phaseTook
API name:phase_took -
phaseTook
API name:phase_took -
self
-