public static class Suggest.Suggestion.Entry.Option extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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.
|
public Option(Text text, float score)
public Option()
public Text getText()
public Text getHighlighted()
public float getScore()
public boolean collateMatch()
true
protected void setScore(float score)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
protected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object