Class LookupFactory

java.lang.Object
org.apache.solr.spelling.suggest.LookupFactory
Direct Known Subclasses:
AnalyzingInfixLookupFactory, AnalyzingLookupFactory, FreeTextLookupFactory, FSTLookupFactory, FuzzyLookupFactory, TSTLookupFactory, WFSTLookupFactory

public abstract class LookupFactory extends Object
Suggester factory for creating Lookup instances.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
    Default lookup implementation to use for SolrSuggester
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.apache.lucene.search.suggest.Lookup
    create(org.apache.solr.common.util.NamedList<?> params, SolrCore core)
    Create a Lookup using config options in params and current core
    protected static org.apache.lucene.store.FSDirectory
     
    abstract String
    Returns the filename in which the in-memory data structure is stored NOTE: not all Lookup implementations store in-memory data structures

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_FILE_BASED_DICT

      public static String DEFAULT_FILE_BASED_DICT
      Default lookup implementation to use for SolrSuggester
  • Constructor Details

    • LookupFactory

      public LookupFactory()
  • Method Details

    • create

      public abstract org.apache.lucene.search.suggest.Lookup create(org.apache.solr.common.util.NamedList<?> params, SolrCore core)
      Create a Lookup using config options in params and current core
    • storeFileName

      public abstract String storeFileName()
      Returns the filename in which the in-memory data structure is stored NOTE: not all Lookup implementations store in-memory data structures
    • getTempDir

      protected static org.apache.lucene.store.FSDirectory getTempDir()