Defining MongoDB Indexes
The following properties are applicable to MongoDB Indexes object in the model explorer.
Tab |
Section |
Property |
Description |
Additional Information |
General | Index Members | Specifies the fields that are included in the index | ||
Selected Index Members | Field |
Specifies the fields that are included in the index |
|
|
Sort Order | Specifies the sort order of the index |
Ascending: Indicates that the indexes are sorted in ascending order Descending: Indicates that the indexes are sorted in descending order |
||
Index Type | Specifies the index type of the selected field | TEXT: Indicates whether to search queries based on a string 2DSPHERE: Indicates whether to search queries calculated on a spherical plane 2D: Indicates whether to search queries stored as a point on two-dimension plane HASHED: Indicates whether to search strings with the hash value |
||
Options | Partial Filter Expression | Specifies partialFilterExpression options for partial indexes |
|
|
Wildcard Index Expression | Specifies wildcard index expression options for wildcard indexes |
|
||
More Index options | Specifies other index options other than partial filter expressions and wildcard index expressions |
|
||
Index Options | Locale | Specifies the ICU locale of the collation | ||
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 for the collation |
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 for the collation |
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 |
|
||
More Options | Create TTL | Specifies the TTL value in seconds for TTL index |
Copyright © 2023 Quest Software, Inc. |