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.Params
-
Nested 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
-
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description Option(StreamInput in)Option(Text text, float score, java.lang.String dummy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
Option
public Option(Text text, float score, java.lang.String dummy)
-
Option
public Option(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
- 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
protected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
- 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
public static CustomSuggestion.Entry.Option fromXContent(XContentParser parser)
-
-