org.apache.lucene.search.spell

Class SuggestWord



  • public final class SuggestWord
    extends Object
    SuggestWord, used in suggestSimilar method in SpellChecker class.

    Default sort is first by score, then by frequency.

    • Field Detail

      • score

        public float score
        the score of the word
      • freq

        public int freq
        The freq of the word
    • Constructor Detail

      • SuggestWord

        public SuggestWord()
        Creates a new empty suggestion with null text.