java.lang.Object
org.apache.lucene.search.ScoreDoc
org.elasticsearch.search.rank.RankDoc
org.elasticsearch.search.rank.feature.RankFeatureDoc
- All Implemented Interfaces:
Comparable<RankDoc>,NamedWriteable,VersionedNamedWriteable,Writeable,ToXContent,ToXContentFragment
A
RankDoc that contains field data to be used later by the reranker on the coordinator node.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.rank.RankDoc
RankDoc.RankKeyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.apache.lucene.search.ScoreDoc
doc, score, shardIndexFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected intprotected voiddoToXContent(XContentBuilder builder, ToXContent.Params params) protected voiddoWriteTo(StreamOutput out) org.apache.lucene.search.ExplanationExplain the ranking of this document.voidfeatureData(List<String> featureData) Returns the name of the writeable objectMethods inherited from class org.elasticsearch.search.rank.RankDoc
compareTo, equals, getMinimalSupportedVersion, hashCode, toString, toXContent, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
NAME
- See Also:
-
featureData
-
-
Constructor Details
-
RankFeatureDoc
public RankFeatureDoc(int doc, float score, int shardIndex) -
RankFeatureDoc
- Throws:
IOException
-
-
Method Details
-
explain
public org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Explanation[] sources, String[] queryNames) Description copied from class:RankDocExplain the ranking of this document. -
featureData
-
doWriteTo
- Overrides:
doWriteToin classRankDoc- Throws:
IOException
-
doEquals
-
doHashCode
protected int doHashCode()- Overrides:
doHashCodein classRankDoc
-
getWriteableName
Description copied from interface:VersionedNamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable- Overrides:
getWriteableNamein classRankDoc
-
doToXContent
- Overrides:
doToXContentin classRankDoc- Throws:
IOException
-