Class Suggester

java.lang.Object
org.apache.solr.spelling.SolrSpellChecker
org.apache.solr.spelling.suggest.Suggester

public class Suggester extends SolrSpellChecker
  • Field Details

    • LOCATION

      public static final String LOCATION
      Location of the source data - either a path to a file, or null for the current IndexReader.
      See Also:
    • LOOKUP_IMPL

      public static final String LOOKUP_IMPL
      Fully-qualified class of the Lookup implementation.
      See Also:
    • THRESHOLD_TOKEN_FREQUENCY

      public static final String THRESHOLD_TOKEN_FREQUENCY
      Minimum frequency of terms to consider when building the dictionary.
      See Also:
    • STORE_DIR

      public static final String STORE_DIR
      Name of the location where to persist the dictionary. If this location is relative then the data will be stored under the core's dataDir. If this is null the storing will be disabled.
      See Also:
    • sourceLocation

      protected String sourceLocation
    • storeDir

      protected Path storeDir
    • threshold

      protected float threshold
    • dictionary

      protected org.apache.lucene.search.spell.Dictionary dictionary
    • reader

      protected org.apache.lucene.index.IndexReader reader
    • lookup

      protected org.apache.lucene.search.suggest.Lookup lookup
    • lookupImpl

      protected String lookupImpl
    • core

      protected SolrCore core
  • Constructor Details

    • Suggester

      public Suggester()
  • Method Details