public static class PhraseSuggestion.Entry extends Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>
Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected double |
cutoffScore |
length, offset, options, OPTIONS, text
EMPTY_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, toXContent
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public 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.Entry
merge
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
Streamable
readFrom
in interface Streamable
readFrom
in class Suggest.Suggestion.Entry<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<Suggest.Suggestion.Entry.Option>
java.io.IOException