Package org.apache.solr.spelling.suggest
Class LookupFactory
- java.lang.Object
-
- org.apache.solr.spelling.suggest.LookupFactory
-
- Direct Known Subclasses:
AnalyzingInfixLookupFactory,AnalyzingLookupFactory,FreeTextLookupFactory,FSTLookupFactory,FuzzyLookupFactory,JaspellLookupFactory,TSTLookupFactory,WFSTLookupFactory
public abstract class LookupFactory extends Object
Suggester factory for creatingLookupinstances.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_FILE_BASED_DICTDefault lookup implementation to use for SolrSuggester
-
Constructor Summary
Constructors Constructor Description LookupFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.lucene.search.suggest.Lookupcreate(org.apache.solr.common.util.NamedList<?> params, SolrCore core)Create a Lookup using config options inparamsand currentcoreprotected static org.apache.lucene.store.FSDirectorygetTempDir()abstract StringstoreFileName()Returns the filename in which the in-memory data structure is stored NOTE: not allLookupimplementations store in-memory data structures
-
-
-
Field Detail
-
DEFAULT_FILE_BASED_DICT
public static String DEFAULT_FILE_BASED_DICT
Default lookup implementation to use for SolrSuggester
-
-
Method Detail
-
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 inparamsand currentcore
-
storeFileName
public abstract String storeFileName()
Returns the filename in which the in-memory data structure is stored NOTE: not allLookupimplementations store in-memory data structures
-
getTempDir
protected static org.apache.lucene.store.FSDirectory getTempDir()
-
-