Class TopSuggestDocs.SuggestScoreDoc

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.CharSequence context
      Context for the completion
      java.lang.CharSequence key
      Matched completion key
    • Constructor Summary

      Constructors 
      Constructor Description
      SuggestScoreDoc​(int doc, java.lang.CharSequence key, java.lang.CharSequence context, float score)
      Creates a SuggestScoreDoc instance
    • Field Detail

      • key

        public final java.lang.CharSequence key
        Matched completion key
      • context

        public final java.lang.CharSequence context
        Context for the completion
    • Constructor Detail

      • SuggestScoreDoc

        public SuggestScoreDoc​(int doc,
                               java.lang.CharSequence key,
                               java.lang.CharSequence context,
                               float score)
        Creates a SuggestScoreDoc instance
        Parameters:
        doc - document id (hit)
        key - matched completion
        score - weight of the matched completion
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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