Class CustomSuggestion.Entry.Option
java.lang.Object
org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option
org.opensearch.example.customsuggester.CustomSuggestion.Entry.Option
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
- Enclosing class:
- CustomSuggestion.Entry
public static class CustomSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Field Summary
Fields inherited from class org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option
COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXT -
Constructor Summary
Constructors Constructor Description Option(StreamInput in)Option(Text text, float score, java.lang.String dummy) -
Method Summary
Modifier and Type Method Description static CustomSuggestion.Entry.OptionfromXContent(XContentParser parser)java.lang.StringgetDummy()A meaningless value used to test that plugin suggesters can add fields to their optionsprotected voidmergeInto(Suggest.Suggestion.Entry.Option otherOption)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Methods inherited from class org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option
collateMatch, equals, getHighlighted, getScore, getText, hashCode, setScore
-
Constructor Details
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSuggest.Suggestion.Entry.Option- Throws:
java.io.IOException
-
getDummy
public java.lang.String getDummy()A meaningless value used to test that plugin suggesters can add fields to their options -
mergeInto
- Overrides:
mergeIntoin classSuggest.Suggestion.Entry.Option
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classSuggest.Suggestion.Entry.Option- Throws:
java.io.IOException
-
fromXContent
-