Package org.apache.lucene.collation
Class CollationKeyFilterFactory
- java.lang.Object
-
- org.apache.lucene.analysis.util.AbstractAnalysisFactory
-
- org.apache.lucene.analysis.util.TokenFilterFactory
-
- org.apache.lucene.collation.CollationKeyFilterFactory
-
- All Implemented Interfaces:
MultiTermAwareComponent,ResourceLoaderAware
@Deprecated public class CollationKeyFilterFactory extends TokenFilterFactory implements MultiTermAwareComponent, ResourceLoaderAware
Deprecated.useCollationKeyAnalyzerinstead.Factory forCollationKeyFilter.This factory can be created in two ways:
- Based upon a system collator associated with a Locale.
- Based upon a tailored ruleset.
Using a System collator:
- language: ISO-639 language code (mandatory)
- country: ISO-3166 country code (optional)
- variant: vendor or browser-specific code (optional)
- strength: 'primary','secondary','tertiary', or 'identical' (optional)
- decomposition: 'no','canonical', or 'full' (optional)
Using a Tailored ruleset:
- custom: UTF-8 text file containing rules supported by RuleBasedCollator (mandatory)
- strength: 'primary','secondary','tertiary', or 'identical' (optional)
- decomposition: 'no','canonical', or 'full' (optional)
<fieldType name="text_clltnky" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.CollationKeyFilterFactory" language="ja" country="JP"/> </analyzer> </fieldType>- Since:
- solr 3.1
- See Also:
Collator,Locale,RuleBasedCollator
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM
-
-
Constructor Summary
Constructors Constructor Description CollationKeyFilterFactory(Map<String,String> args)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TokenStreamcreate(TokenStream input)Deprecated.Transform the specified input TokenStreamAbstractAnalysisFactorygetMultiTermComponent()Deprecated.Returns an analysis component to handle analysis if multi-term queries.voidinform(ResourceLoader loader)Deprecated.Initializes this component with the provided ResourceLoader (used for loading classes, files, etc).-
Methods inherited from class org.apache.lucene.analysis.util.TokenFilterFactory
availableTokenFilters, forName, lookupClass, reloadTokenFilters
-
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
get, get, get, get, get, getChar, getClassArg, getLuceneMatchVersion, getOriginalArgs, getSet, isExplicitLuceneMatchVersion, require, require, require, requireChar, setExplicitLuceneMatchVersion
-
-
-
-
Method Detail
-
inform
public void inform(ResourceLoader loader) throws IOException
Deprecated.Description copied from interface:ResourceLoaderAwareInitializes this component with the provided ResourceLoader (used for loading classes, files, etc).- Specified by:
informin interfaceResourceLoaderAware- Throws:
IOException
-
create
public TokenStream create(TokenStream input)
Deprecated.Description copied from class:TokenFilterFactoryTransform the specified input TokenStream- Specified by:
createin classTokenFilterFactory
-
getMultiTermComponent
public AbstractAnalysisFactory getMultiTermComponent()
Deprecated.Description copied from interface:MultiTermAwareComponentReturns an analysis component to handle analysis if multi-term queries. The returned component must be a TokenizerFactory, TokenFilterFactory or CharFilterFactory.- Specified by:
getMultiTermComponentin interfaceMultiTermAwareComponent
-
-