public static class Suggest.Suggestion.Entry.Option extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
Suggest.Suggestion.Entry.Option() |
Suggest.Suggestion.Entry.Option(Text text,
float score) |
Suggest.Suggestion.Entry.Option(Text text,
Text highlighted,
float score) |
Suggest.Suggestion.Entry.Option(Text text,
Text highlighted,
float score,
Boolean collateMatch) |
Modifier and Type | Method and Description |
---|---|
boolean |
collateMatch() |
boolean |
equals(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) |
protected void |
setScore(float score) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public Suggest.Suggestion.Entry.Option(Text text, Text highlighted, float score, Boolean collateMatch)
public Suggest.Suggestion.Entry.Option(Text text, Text highlighted, float score)
public Suggest.Suggestion.Entry.Option(Text text, float score)
public Suggest.Suggestion.Entry.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 IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
protected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
Copyright © 2009–2016. All rights reserved.