Class TermSuggestion.Entry
java.lang.Object
org.elasticsearch.search.suggest.Suggest.Suggestion.Entry<TermSuggestion.Entry.Option>
org.elasticsearch.search.suggest.term.TermSuggestion.Entry
- All Implemented Interfaces:
java.lang.Iterable<TermSuggestion.Entry.Option>,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- TermSuggestion
public static class TermSuggestion.Entry extends Suggest.Suggestion.Entry<TermSuggestion.Entry.Option>
Represents a part from the suggest text with suggested options.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermSuggestion.Entry.OptionContains the suggested text with its document frequency and score.Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry
length, offset, options, OPTIONS, textFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors Constructor Description Entry(StreamInput in)Entry(Text text, int offset, int length) -
Method Summary
Modifier and Type Method Description static TermSuggestion.EntryfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)protected TermSuggestion.Entry.OptionnewOption(StreamInput in)Methods inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry
addOption, addOptions, declareCommonFields, equals, getLength, getOffset, getOptions, getText, hashCode, iterator, merge, reduce, sort, toXContent, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Entry
-
Entry
- Throws:
java.io.IOException
-
-
Method Details
-
newOption
- Specified by:
newOptionin classSuggest.Suggestion.Entry<TermSuggestion.Entry.Option>- Throws:
java.io.IOException
-
fromXContent
public static TermSuggestion.Entry fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
-