Class CompletionSuggestion.Entry.Option

java.lang.Object
org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option
org.elasticsearch.search.suggest.completion.CompletionSuggestion.Entry.Option
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment
Enclosing class:
CompletionSuggestion.Entry

public static class CompletionSuggestion.Entry.Option
extends Suggest.Suggestion.Entry.Option
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields
    Modifier and Type Field Description
    static org.elasticsearch.common.ParseField CONTEXTS  

    Fields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option

    COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXT

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor Description
    Option​(int docID, Text text, float score, java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> contexts)  
    Option​(StreamInput in)  
  • Method Summary

    Modifier and Type Method Description
    static CompletionSuggestion.Entry.Option fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getContexts()  
    org.apache.lucene.search.ScoreDoc getDoc()  
    SearchHit getHit()  
    protected void mergeInto​(Suggest.Suggestion.Entry.Option otherOption)  
    void setHit​(SearchHit hit)  
    void setShardIndex​(int shardIndex)  
    java.lang.String toString()  
    org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
    void writeTo​(StreamOutput out)
    Write this into the StreamOutput.

    Methods inherited from class org.elasticsearch.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, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment
  • Field Details

    • CONTEXTS

      public static final org.elasticsearch.common.ParseField CONTEXTS
  • Constructor Details

    • Option

      public Option​(int docID, Text text, float score, java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> contexts)
    • Option

      public Option​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • mergeInto

      protected void mergeInto​(Suggest.Suggestion.Entry.Option otherOption)
      Overrides:
      mergeInto in class Suggest.Suggestion.Entry.Option
    • getContexts

      public java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getContexts()
    • getDoc

      public org.apache.lucene.search.ScoreDoc getDoc()
    • getHit

      public SearchHit getHit()
    • setShardIndex

      public void setShardIndex​(int shardIndex)
    • setHit

      public void setHit​(SearchHit hit)
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Overrides:
      toXContent in class Suggest.Suggestion.Entry.Option
      Throws:
      java.io.IOException
    • fromXContent

      public static CompletionSuggestion.Entry.Option fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class Suggest.Suggestion.Entry.Option
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object