java.lang.Iterable<TermSuggestion.Entry.Option>
, Streamable
, ToXContent
, ToXContentObject
public static class TermSuggestion.Entry extends Suggest.Suggestion.Entry<TermSuggestion.Entry.Option>
Modifier and Type | Class | Description |
---|---|---|
static class |
TermSuggestion.Entry.Option |
Contains the suggested text with its document frequency and score.
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
length, offset, options, OPTIONS, text
EMPTY_PARAMS
Modifier and Type | Method | Description |
---|---|---|
static TermSuggestion.Entry |
fromXContent(XContentParser parser) |
|
protected TermSuggestion.Entry.Option |
newOption() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addOption, addOptions, declareCommonFields, equals, getLength, getOffset, getOptions, getText, hashCode, iterator, merge, readFrom, reduce, sort, toXContent, writeTo
isFragment
public Entry(Text text, int offset, int length)
protected TermSuggestion.Entry.Option newOption()
newOption
in class Suggest.Suggestion.Entry<TermSuggestion.Entry.Option>
public static TermSuggestion.Entry fromXContent(XContentParser parser)