Class WFSTLookupFactory
- java.lang.Object
-
- org.apache.solr.spelling.suggest.LookupFactory
-
- org.apache.solr.spelling.suggest.fst.WFSTLookupFactory
-
public class WFSTLookupFactory extends LookupFactory
Factory forWFSTCompletionLookup- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXACT_MATCH_FIRSTIftrue, exact suggestions are returned first, even if they are prefixes of other strings in the automaton (possibly with larger weights).-
Fields inherited from class org.apache.solr.spelling.suggest.LookupFactory
DEFAULT_FILE_BASED_DICT
-
-
Constructor Summary
Constructors Constructor Description WFSTLookupFactory()
-
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
-
EXACT_MATCH_FIRST
public static final String EXACT_MATCH_FIRST
Iftrue, exact suggestions are returned first, even if they are prefixes of other strings in the automaton (possibly with larger weights).- 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
-
-