Search Results for

    Show / Hide Table of Contents

    Enum IcuCollationStrength

    The strength property determines the minimum level of difference considered significant during comparison. See also: http://icu-project.org/apiref/icu4j/com/ibm/icu/text/Collator.html

    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public enum IcuCollationStrength
    Remarks

    Requires analysis-icu plugin to be installed

    Fields

    Name Description
    Indentical

    When all other strengths are equal, the IDENTICAL strength is used as a tiebreaker. The Unicode code point values of the NFD form of each string are compared, just in case there is no difference. For example, Hebrew cantellation marks are only distinguished at this strength. This strength should be used sparingly, as only code point value differences between two strings is an extremely rare occurrence. Using this strength substantially decreases the performance for both comparison and collation key generation APIs. This strength also increases the size of the collation key.

    Primary

    Typically, this is used to denote differences between base characters (for example, "a" < "b"). It is the strongest difference. For example, dictionaries are divided into different sections by base character.

    Quaternary

    When punctuation is ignored (see Ignoring Punctuations in the User Guide) at PRIMARY to TERTIARY strength, an additional strength level can be used to distinguish words with and without punctuation (for example, "ab" < "a-b" < "aB"). This difference is ignored when there is a PRIMARY, SECONDARY or TERTIARY difference. The QUATERNARY strength should only be used if ignoring punctuation is required.

    Secondary

    Accents in the characters are considered secondary differences (for example, "as" < "às" < "at"). Other differences between letters can also be considered secondary differences, depending on the language. A secondary difference is ignored when there is a primary difference anywhere in the strings.

    Tertiary

    Upper and lower case differences in characters are distinguished at tertiary strength (for example, "ao" < "Ao" < "aò"). In addition, a variant of a letter differs from the base form on the tertiary strength (such as "A" and "Ⓐ"). Another example is the difference between large and small Kana. A tertiary difference is ignored when there is a primary or secondary difference anywhere in the strings.

    Extension Methods

    KnownEnums.GetStringValue(Enum)
    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Fields
    • Extension Methods
    Back to top Generated by DocFX