public static class TermSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
TermSuggestion.Entry.Option() |
protected |
TermSuggestion.Entry.Option(Text text,
int freq,
float score) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFreq() |
protected XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
protected void |
mergeInto(Suggest.Suggestion.Entry.Option otherOption) |
void |
readFrom(StreamInput in) |
void |
setFreq(int freq) |
void |
writeTo(StreamOutput out) |
collateMatch, equals, getHighlighted, getScore, getText, hashCode, setScore, toXContentprotected TermSuggestion.Entry.Option(Text text, int freq, float score)
protected TermSuggestion.Entry.Option()
protected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
mergeInto in class Suggest.Suggestion.Entry.Optionpublic void setFreq(int freq)
public int getFreq()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class Suggest.Suggestion.Entry.OptionIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class Suggest.Suggestion.Entry.OptionIOExceptionprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
innerToXContent in class Suggest.Suggestion.Entry.OptionIOExceptionCopyright © 2009–2017. All rights reserved.