Class Suggester

    • Field Detail

      • 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:
        Constant Field Values
      • LOOKUP_IMPL

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

        public static final String THRESHOLD_TOKEN_FREQUENCY
        Minimum frequency of terms to consider when building the dictionary.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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
    • Constructor Detail

      • Suggester

        public Suggester()