Class AnalyzingInfixLookupFactory
java.lang.Object
org.apache.solr.spelling.suggest.LookupFactory
org.apache.solr.spelling.suggest.fst.AnalyzingInfixLookupFactory
- Direct Known Subclasses:
BlendedInfixLookupFactory
Factory for
AnalyzingInfixSuggester- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringBoolean clause matching option for multiple terms Default is true - all terms required.static final StringClone of CONTEXTS_FIELD_NAME in AnalyzingInfixSuggesterprotected static final StringHighlight suggest terms - default is true.protected static final StringThe path where the underlying index is stored if no index is found, it will be generated by the AnalyzingInfixSuggesterprotected static final StringMinimum number of leading characters before PrefixQuery is used (default 4).protected static final StringThe analyzer used at "query-time" and "build-time" to analyze suggestions.Fields inherited from class org.apache.solr.spelling.suggest.LookupFactory
DEFAULT_FILE_BASED_DICT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.suggest.LookupCreate a Lookup using config options inparamsand currentcoreReturns the filename in which the in-memory data structure is stored NOTE: not allLookupimplementations store in-memory data structuresMethods inherited from class org.apache.solr.spelling.suggest.LookupFactory
getTempDir
-
Field Details
-
QUERY_ANALYZER
The analyzer used at "query-time" and "build-time" to analyze suggestions.- See Also:
-
INDEX_PATH
The path where the underlying index is stored if no index is found, it will be generated by the AnalyzingInfixSuggester- See Also:
-
MIN_PREFIX_CHARS
Minimum number of leading characters before PrefixQuery is used (default 4). Prefixes shorter than this are indexed as character ngrams (increasing index size but making lookups faster)- See Also:
-
ALL_TERMS_REQUIRED
Boolean clause matching option for multiple terms Default is true - all terms required.- See Also:
-
HIGHLIGHT
Highlight suggest terms - default is true.- See Also:
-
CONTEXTS_FIELD_NAME
Clone of CONTEXTS_FIELD_NAME in AnalyzingInfixSuggester- See Also:
-
-
Constructor Details
-
AnalyzingInfixLookupFactory
public AnalyzingInfixLookupFactory()
-
-
Method Details
-
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
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
-