Package org.elasticsearch.index.rankeval
Class RatedSearchHit
java.lang.Object
org.elasticsearch.index.rankeval.RatedSearchHit
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class RatedSearchHit
extends Object
implements org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContentObject
Combines a
SearchHit with a document rating.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRatedSearchHit(org.elasticsearch.search.SearchHit searchHit, OptionalInt rating) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.elasticsearch.search.SearchHitinthashCode()static RatedSearchHitparse(org.elasticsearch.common.xcontent.XContentParser parser)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
RatedSearchHit
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
getSearchHit
public org.elasticsearch.search.SearchHit getSearchHit() -
getRating
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
parse
public static RatedSearchHit parse(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
equals
-
hashCode
public final int hashCode()
-