Package org.elasticsearch.search
Class RescoreDocIds
java.lang.Object
org.elasticsearch.search.RescoreDocIds
- All Implemented Interfaces:
Writeable
public final class RescoreDocIds extends java.lang.Object implements 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
Fields Modifier and Type Field Description static RescoreDocIds
EMPTY
-
Constructor Summary
Constructors Constructor Description RescoreDocIds(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> docIds)
RescoreDocIds(StreamInput in)
-
Method Summary
Modifier and Type Method Description java.util.Set<java.lang.Integer>
getId(int index)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Field Details
-
Constructor Details
-
RescoreDocIds
public RescoreDocIds(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> docIds) -
RescoreDocIds
- Throws:
java.io.IOException
-
-
Method Details