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

public static class CustomSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
  • 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.Params

    Nested 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, TEXT

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Option(org.opensearch.core.common.io.stream.StreamInput in)
     
    Option(org.opensearch.core.common.text.Text text, float score, String dummy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromXContent(org.opensearch.core.xcontent.XContentParser parser)
     
    A meaningless value used to test that plugin suggesters can add fields to their options
    protected void
     
    org.opensearch.core.xcontent.XContentBuilder
    toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
     
    void
    writeTo(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, setScore

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensearch.core.xcontent.ToXContentFragment

    isFragment