Class CollationKeyFilterFactory

  • All Implemented Interfaces:
    MultiTermAwareComponent, ResourceLoaderAware

    @Deprecated
    public class CollationKeyFilterFactory
    extends TokenFilterFactory
    implements MultiTermAwareComponent, ResourceLoaderAware
    Deprecated.
    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
    • Constructor Detail

      • CollationKeyFilterFactory

        public CollationKeyFilterFactory​(java.util.Map<java.lang.String,​java.lang.String> args)
        Deprecated.