Class SuggestWord

java.lang.Object
org.apache.lucene.search.spell.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 Details

    • score

      public float score
      the score of the word
    • freq

      public int freq
      The freq of the word
    • string

      public String string
      the suggested word
  • Constructor Details

    • SuggestWord

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