Streamable
, ToXContent
, ToXContentObject
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 | Description |
---|---|---|
protected double |
cutoffScore |
length, offset, options, OPTIONS, text
EMPTY_PARAMS
Constructor | Description |
---|---|
Entry(Text text,
int offset,
int length,
double cutoffScore) |
Modifier and Type | Method | 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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
newWriteableReader
addOptions, declareCommonFields, equals, getLength, getOffset, getOptions, getText, hashCode, iterator, newOption, reduce, sort, toXContent
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