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, TEXTEMPTY_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, toXContentclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic 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.Optionpublic void setFreq(int freq)
public int getFreq()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class Suggest.Suggestion.Entry.Optionjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class Suggest.Suggestion.Entry.Optionjava.io.IOExceptionprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent in class Suggest.Suggestion.Entry.Optionjava.io.IOExceptionpublic static TermSuggestion.Entry.Option fromXContent(XContentParser parser)