Module org.elasticsearch.server
Class InternalSearchResponse
java.lang.Object
org.elasticsearch.action.search.SearchResponseSections
org.elasticsearch.search.internal.InternalSearchResponse
- All Implemented Interfaces:
Writeable
,ChunkedToXContent
SearchResponseSections
subclass that can be serialized over the wire.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InternalSearchResponse
static final InternalSearchResponse
Fields inherited from class org.elasticsearch.action.search.SearchResponseSections
aggregations, hits, numReducePhases, profileResults, suggest, terminatedEarly, timedOut
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionInternalSearchResponse
(SearchHits hits, InternalAggregations aggregations, Suggest suggest, SearchProfileResults profileResults, boolean timedOut, Boolean terminatedEarly, int numReducePhases) -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.search.SearchResponseSections
aggregations, getNumReducePhases, hits, isFragment, profile, suggest, terminatedEarly, timedOut, toXContentChunked
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunkedV7
-
Field Details
-
EMPTY_WITH_TOTAL_HITS
-
EMPTY_WITHOUT_TOTAL_HITS
-
-
Constructor Details
-
InternalSearchResponse
public InternalSearchResponse(SearchHits hits, InternalAggregations aggregations, Suggest suggest, SearchProfileResults profileResults, boolean timedOut, Boolean terminatedEarly, int numReducePhases) -
InternalSearchResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classSearchResponseSections
- Throws:
IOException
-