Class DirectSolrSpellChecker


  • public class DirectSolrSpellChecker
    extends SolrSpellChecker
    Spellchecker implementation that uses DirectSpellChecker

    Requires no auxiliary index or data structure.

    Supported options:

    • field: Used as the source of terms.
    • distanceMeasure: Sets DirectSpellChecker.setDistance(StringDistance). Note: to set the default DirectSpellChecker.INTERNAL_LEVENSHTEIN, use "internal".
    • accuracy: Sets DirectSpellChecker.setAccuracy(float).
    • maxEdits: Sets DirectSpellChecker.setMaxEdits(int).
    • minPrefix: Sets DirectSpellChecker.setMinPrefix(int).
    • maxInspections: Sets DirectSpellChecker.setMaxInspections(int).
    • comparatorClass: Sets DirectSpellChecker.setComparator(Comparator). Note: score-then-frequency can be specified as "score" and frequency-then-score can be specified as "freq".
    • thresholdTokenFrequency: sets DirectSpellChecker.setThresholdFrequency(float).
    • minQueryLength: sets DirectSpellChecker.setMinQueryLength(int).
    • maxQueryLength: sets DirectSpellChecker.setMaxQueryLength(int).
    • maxQueryFrequency: sets DirectSpellChecker.setMaxQueryFrequency(float).
    See Also:
    DirectSpellChecker