Package org.apache.solr.spelling.suggest
Class DictionaryFactory
- java.lang.Object
-
- org.apache.solr.spelling.suggest.DictionaryFactory
-
- Direct Known Subclasses:
DocumentDictionaryFactory
,DocumentExpressionDictionaryFactory
,FileDictionaryFactory
,HighFrequencyDictionaryFactory
public abstract class DictionaryFactory extends Object
Encapsulates shared fields for all types of dictionaryFactory classes
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_FILE_BASED_DICT
Default dictionary implementation to use for FileBasedDictionariesstatic String
DEFAULT_INDEX_BASED_DICT
Default dictionary implementation to use for IndexBasedDictionariesprotected org.apache.solr.common.util.NamedList<?>
params
-
Constructor Summary
Constructors Constructor Description DictionaryFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.lucene.search.spell.Dictionary
create(SolrCore core, SolrIndexSearcher searcher)
Create a Dictionary using options incore
and optionally usessearcher
, in case of index based dictionariesvoid
setParams(org.apache.solr.common.util.NamedList<?> params)
Sets the parameters available to SolrSuggester for use in Dictionary creation
-
-
-
Field Detail
-
DEFAULT_FILE_BASED_DICT
public static String DEFAULT_FILE_BASED_DICT
Default dictionary implementation to use for FileBasedDictionaries
-
DEFAULT_INDEX_BASED_DICT
public static String DEFAULT_INDEX_BASED_DICT
Default dictionary implementation to use for IndexBasedDictionaries
-
params
protected org.apache.solr.common.util.NamedList<?> params
-
-
Method Detail
-
setParams
public void setParams(org.apache.solr.common.util.NamedList<?> params)
Sets the parameters available to SolrSuggester for use in Dictionary creation
-
create
public abstract org.apache.lucene.search.spell.Dictionary create(SolrCore core, SolrIndexSearcher searcher)
Create a Dictionary using options incore
and optionally usessearcher
, in case of index based dictionaries
-
-