Class CollationField


  • public class CollationField
    extends FieldType
    Field for collated sort keys. These can be used for locale-sensitive sort and range queries.

    This field 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)
    Since:
    solr 4.0
    See Also:
    Collator, Locale, RuleBasedCollator