java.lang.Object
org.apache.lucene.search.ScoreDoc
org.elasticsearch.search.rank.RankDoc
- All Implemented Interfaces:
Writeable
RankDoc
is the base class for all ranked results.
Subclasses should extend this with additional information
required for their global ranking method.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
int
If this document has been ranked, this is its final rrf ranking from all the result sets.Fields inherited from class org.apache.lucene.search.ScoreDoc
doc, score, shardIndex
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRankDoc
(int doc, float score, int shardIndex) protected
RankDoc
(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
protected abstract int
protected abstract void
doWriteTo
(StreamOutput out) final boolean
final int
hashCode()
toString()
final void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
NO_RANK
public static final int NO_RANK- See Also:
-
rank
public int rankIf this document has been ranked, this is its final rrf ranking from all the result sets.
-
-
Constructor Details
-
RankDoc
public RankDoc(int doc, float score, int shardIndex) -
RankDoc
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
doWriteTo
- Throws:
IOException
-
equals
-
doEquals
-
hashCode
public final int hashCode() -
doHashCode
protected abstract int doHashCode() -
toString
- Overrides:
toString
in classorg.apache.lucene.search.ScoreDoc
-