Class SearchResponse.Builder<TDocument>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.core.search.ResponseBody.AbstractBuilder<TDocument,SearchResponse.Builder<TDocument>>
co.elastic.clients.elasticsearch.core.SearchResponse.Builder<TDocument>
- All Implemented Interfaces:
WithJson<SearchResponse.Builder<TDocument>>
,ObjectBuilder<SearchResponse<TDocument>>
- Enclosing class:
- SearchResponse<TDocument>
public static class SearchResponse.Builder<TDocument> extends ResponseBody.AbstractBuilder<TDocument,SearchResponse.Builder<TDocument>> implements ObjectBuilder<SearchResponse<TDocument>>
Builder for
SearchResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SearchResponse<TDocument>
build()
Builds aSearchResponse
.protected SearchResponse.Builder<TDocument>
self()
Methods inherited from class co.elastic.clients.elasticsearch.core.search.ResponseBody.AbstractBuilder
aggregations, aggregations, aggregations, clusters, clusters, fields, fields, hits, hits, maxScore, numReducePhases, pitId, profile, profile, scrollId, shards, shards, suggest, suggest, tDocumentSerializer, terminatedEarly, timedOut, took
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
- Specified by:
self
in classResponseBody.AbstractBuilder<TDocument,SearchResponse.Builder<TDocument>>
-
build
Builds aSearchResponse
.- Specified by:
build
in interfaceObjectBuilder<TDocument>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-