org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObjectpublic class RatedSearchHit
extends java.lang.Object
implements org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContentObject
SearchHit with a document rating.| Constructor | Description |
|---|---|
RatedSearchHit(org.elasticsearch.search.SearchHit searchHit,
java.util.Optional<java.lang.Integer> rating) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.util.Optional<java.lang.Integer> |
getRating() |
|
org.elasticsearch.search.SearchHit |
getSearchHit() |
|
int |
hashCode() |
|
static RatedSearchHit |
parse(org.elasticsearch.common.xcontent.XContentParser parser) |
|
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
|
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public RatedSearchHit(org.elasticsearch.search.SearchHit searchHit,
java.util.Optional<java.lang.Integer> rating)
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.Writeablejava.io.IOExceptionpublic org.elasticsearch.search.SearchHit getSearchHit()
public java.util.Optional<java.lang.Integer> getRating()
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
toXContent in interface org.elasticsearch.common.xcontent.ToXContentjava.io.IOExceptionpublic static RatedSearchHit parse(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Object