public static class Suggest.Suggestion.Entry.Option extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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()
trueprotected void setScore(float score)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionprotected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
Copyright © 2009–2017. All rights reserved.