Package org.elasticsearch.search
Class RescoreDocIds
java.lang.Object
org.elasticsearch.search.RescoreDocIds
- All Implemented Interfaces:
Writeable
Since
SearchContext
no longer hold the states of search, the top K results
(i.e., documents that will be rescored by query rescorers) need to be serialized/ deserialized between search phases.
A RescoreDocIds
encapsulates the top K results for each rescorer by its ordinal index.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId(int index)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RescoreDocIds
-
RescoreDocIds
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getId
-