public static class TermSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, toXContent
protected 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.Option
public void setFreq(int freq)
public int getFreq()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class Suggest.Suggestion.Entry.Option
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class Suggest.Suggestion.Entry.Option
IOException
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
innerToXContent
in class Suggest.Suggestion.Entry.Option
IOException
Copyright © 2009–2016. All rights reserved.