Class FreeTextLookupFactory
- java.lang.Object
-
- org.apache.solr.spelling.suggest.LookupFactory
-
- org.apache.solr.spelling.suggest.fst.FreeTextLookupFactory
-
public class FreeTextLookupFactory extends LookupFactory
LookupFactory implementation forFreeTextSuggester
-
-
Field Summary
Fields Modifier and Type Field Description static StringNGRAMSThe n-gram model to use in the underlying suggester; Default value is 2.static StringQUERY_ANALYZERThe analyzer used at "query-time" and "build-time" to analyze suggestions.static StringSEPARATORThe separator to use in the underlying suggester;-
Fields inherited from class org.apache.solr.spelling.suggest.LookupFactory
DEFAULT_FILE_BASED_DICT
-
-
Constructor Summary
Constructors Constructor Description FreeTextLookupFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.suggest.Lookupcreate(org.apache.solr.common.util.NamedList<?> params, SolrCore core)Create a Lookup using config options inparamsand currentcoreStringstoreFileName()Returns the filename in which the in-memory data structure is stored NOTE: not allLookupimplementations store in-memory data structures-
Methods inherited from class org.apache.solr.spelling.suggest.LookupFactory
getTempDir
-
-
-
-
Field Detail
-
QUERY_ANALYZER
public static final String QUERY_ANALYZER
The analyzer used at "query-time" and "build-time" to analyze suggestions.- See Also:
- Constant Field Values
-
NGRAMS
public static final String NGRAMS
The n-gram model to use in the underlying suggester; Default value is 2.- See Also:
- Constant Field Values
-
SEPARATOR
public static final String SEPARATOR
The separator to use in the underlying suggester;- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public org.apache.lucene.search.suggest.Lookup create(org.apache.solr.common.util.NamedList<?> params, SolrCore core)Description copied from class:LookupFactoryCreate a Lookup using config options inparamsand currentcore- Specified by:
createin classLookupFactory
-
storeFileName
public String storeFileName()
Description copied from class:LookupFactoryReturns the filename in which the in-memory data structure is stored NOTE: not allLookupimplementations store in-memory data structures- Specified by:
storeFileNamein classLookupFactory
-
-