Class TermSuggestion.Entry
java.lang.Object
org.opensearch.search.suggest.Suggest.Suggestion.Entry<TermSuggestion.Entry.Option>
org.opensearch.search.suggest.term.TermSuggestion.Entry
- All Implemented Interfaces:
java.lang.Iterable<TermSuggestion.Entry.Option>
,Writeable
,org.opensearch.common.xcontent.ToXContent
,org.opensearch.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 class
TermSuggestion.Entry.Option
Contains the suggested text with its document frequency and score.Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Entry(StreamInput in)
Entry(Text text, int offset, int length)
-
Method Summary
Modifier and Type Method Description static TermSuggestion.Entry
fromXContent(org.opensearch.common.xcontent.XContentParser parser)
protected TermSuggestion.Entry.Option
newOption(StreamInput in)
Methods inherited from class org.opensearch.search.suggest.Suggest.Suggestion.Entry
addOption, addOptions, declareCommonFields, equals, getLength, getOffset, getOptions, getText, hashCode, iterator, merge, reduce, sort, toXContent, writeTo
-
Constructor Details
-
Method Details
-
newOption
- Specified by:
newOption
in classSuggest.Suggestion.Entry<TermSuggestion.Entry.Option>
- Throws:
java.io.IOException
-
fromXContent
public static TermSuggestion.Entry fromXContent(org.opensearch.common.xcontent.XContentParser parser)
-