public static class TermSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
Option() |
protected |
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)
Set this object's fields from a StreamInput.
|
void |
setFreq(int freq) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
collateMatch, equals, getHighlighted, getScore, getText, hashCode, setScore, toXContent
protected Option(Text text, int freq, float score)
protected 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 java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class Suggest.Suggestion.Entry.Option
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class Suggest.Suggestion.Entry.Option
java.io.IOException
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent
in class Suggest.Suggestion.Entry.Option
java.io.IOException