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
-
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 Object>, Writeable.Writer<V extends Object> -
Field Summary
Fields inherited from class org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option
COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXTFields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromXContent(XContentParser parser) getDummy()A meaningless value used to test that plugin suggesters can add fields to their optionsprotected voidmergeInto(Suggest.Suggestion.Entry.Option otherOption) toXContent(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, setScoreMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Option
-
Option
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSuggest.Suggestion.Entry.Option- Throws:
IOException
-
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 IOException - Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classSuggest.Suggestion.Entry.Option- Throws:
IOException
-
fromXContent
-