public static class PhraseSuggestion.Entry extends Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>
Suggest.Suggestion.Entry.OptionToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected double |
cutoffScore |
length, offset, options, OPTIONS, textEMPTY_PARAMS| Constructor and Description |
|---|
Entry(Text text,
int offset,
int length,
double cutoffScore) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(Suggest.Suggestion.Entry.Option option) |
static PhraseSuggestion.Entry |
fromXContent(XContentParser parser) |
double |
getCutoffScore() |
protected void |
merge(Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option> other)
Merge any extra fields for this subtype.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
addOptions, declareCommonFields, equals, getLength, getOffset, getOptions, getText, hashCode, iterator, newOption, reduce, sort, toXContentclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Entry(Text text, int offset, int length, double cutoffScore)
public double getCutoffScore()
protected void merge(Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option> other)
Suggest.Suggestion.Entrymerge in class Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>public void addOption(Suggest.Suggestion.Entry.Option option)
addOption in class Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>public static PhraseSuggestion.Entry fromXContent(XContentParser parser)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>java.io.IOException