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:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentFragment
- Enclosing class:
- CustomSuggestion.Entry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V extends Object>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.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.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromXContent(org.opensearch.core.xcontent.XContentParser parser) getDummy()A meaningless value used to test that plugin suggesters can add fields to their optionsprotected voidmergeInto(Suggest.Suggestion.Entry.Option otherOption) org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.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.core.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Option
-
Option
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- 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 org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Overrides:
toXContentin classSuggest.Suggestion.Entry.Option- Throws:
IOException
-
fromXContent
public static CustomSuggestion.Entry.Option fromXContent(org.opensearch.core.xcontent.XContentParser parser)
-