Defining MongoDB Views

The following properties are applicable to a MongoDB View object.

Tab

Property

Description

Additional Information

General Locale Specifies the ICU locale. Enter locale value as "simple" for simple binary comparison.  
Case Level Specifies whether the case comparison is included at strength level 1 or 2

 

Case First Specifies the sort order for tertiary level comparison

UPPER: Indicates that uppercase is sorted before lowercase

LOWER: Indicates that the lowercase is sorted before upper case

OFF: Indicates that the sorting is similar to Lower with small difference. For more information, refer to the MongoDB documentation.

Strength Specifies the strength of the comparison level

1: Indicates that the collation performs primary level comparison and only the base characters are considered for comparison

2: Indicates that the collation performs secondary level comparison and considers both base characters and diacritics for comparison

3: Indicates that the collation performs tertiary level comparison and considers base characters, diacritics, cases and variants for comparison

4: Indicates that the collation performs quaternary level comparison and considers punctuations for comparison

5: Indicates that the collation performs identical level comparison and uses it as a tie-breaker when all other levels are equal

Numeric Order Specifies whether the numeric strings are compared as numbers or strings  
Alternative

Specifies whether the collation must consider whitespace and punctuation as base characters for comparison

Non-Ignorable: Indicates that the whitespace and punctuation re considered as base characters for comparison

Shifted: Indicates that the whitespace and punctuation are not considered as base characters for comparison

MaxVariable

Specifies up to which characters are not considered as base characters when Alternative is set to Shifted

PUNCT: Indicates that both whitespace and punctuation are not considered as base characters

SPACE: Indicates that whitespace is not considered as base characters

Backwards Specifies whether strings with diacritic are compared from back to front

 

NoSQL   Specifies the object properties in a NoSQL format