Package org.opensearch.index.rankeval
Class RatedSearchHit
java.lang.Object
org.opensearch.index.rankeval.RatedSearchHit
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
Combines a
SearchHit with a document rating.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Field Summary
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal inthashCode()static RatedSearchHitparse(XContentParser parser) toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
RatedSearchHit
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getSearchHit
-
getRating
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
parse
- Throws:
IOException
-
equals
-
hashCode
public final int hashCode()
-