public static class Suggest.Suggestion.Entry.Option extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Option() |
Option(Text text,
float score) |
Option(Text text,
Text highlighted,
float score) |
Option(Text text,
Text highlighted,
float score,
java.lang.Boolean collateMatch) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
collateMatch() |
boolean |
equals(java.lang.Object o) |
Text |
getHighlighted() |
float |
getScore() |
Text |
getText() |
int |
hashCode() |
protected XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
protected void |
mergeInto(Suggest.Suggestion.Entry.Option otherOption) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
protected void |
setScore(float score) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Option(Text text, float score)
public Option()
public Text getText()
public Text getHighlighted()
public float getScore()
public boolean collateMatch()
trueprotected void setScore(float score)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionprotected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object