public static class TermSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static ParseField |
FREQ |
COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXT
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
Option() |
|
Option(Text text,
int freq,
float score) |
Modifier and Type | Method and Description |
---|---|
static TermSuggestion.Entry.Option |
fromXContent(XContentParser parser) |
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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public static final ParseField FREQ
public 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
public static TermSuggestion.Entry.Option fromXContent(XContentParser parser)