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, textEMPTY_PARAMS| Constructor and Description |
|---|
PhraseSuggestion.Entry() |
PhraseSuggestion.Entry(Text text,
int offset,
int length,
double cutoffScore) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(Suggest.Suggestion.Entry.Option option) |
double |
getCutoffScore() |
protected void |
merge(Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option> other)
Merge any extra fields for this subtype.
|
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
equals, getLength, getOffset, getOptions, getText, hashCode, iterator, newOption, reduce, sort, toXContentpublic PhraseSuggestion.Entry(Text text, int offset, int length, double cutoffScore)
public PhraseSuggestion.Entry()
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 void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class Suggest.Suggestion.Entry<Suggest.Suggestion.Entry.Option>IOExceptionCopyright © 2009–2017. All rights reserved.