org.apache.solr.analysis
Class CollationKeyFilterFactory
java.lang.Object
org.apache.lucene.analysis.util.AbstractAnalysisFactory
org.apache.lucene.analysis.util.TokenFilterFactory
org.apache.solr.analysis.CollationKeyFilterFactory
- All Implemented Interfaces:
- MultiTermAwareComponent, ResourceLoaderAware
Deprecated. use CollationField
instead.
@Deprecated
public class CollationKeyFilterFactory
- extends TokenFilterFactory
- implements MultiTermAwareComponent, ResourceLoaderAware
Factory for CollationKeyFilter
.
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
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory |
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getLuceneMatchVersion, getPattern, getSnowballWordSet, getWordSet, init, setLuceneMatchVersion, splitFileNames |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollationKeyFilterFactory
public CollationKeyFilterFactory()
- Deprecated.
inform
public void inform(ResourceLoader loader)
- Deprecated.
- Specified by:
inform
in interface ResourceLoaderAware
create
public TokenStream create(TokenStream input)
- Deprecated.
- Specified by:
create
in class TokenFilterFactory
getMultiTermComponent
public AbstractAnalysisFactory getMultiTermComponent()
- Deprecated.
- Specified by:
getMultiTermComponent
in interface MultiTermAwareComponent
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.