mongocli cloud-manager clusters indexes create
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoCLI.
Create a rolling index for your MongoDB cluster.
Syntax
mongocli cloud-manager clusters indexes create [name] [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--MaxVariable | string | false | Determines which characters are are considered ignorable. This field applies only if indexConfigs.collation.alternate is set to shifted. |
--alternate | string | false | Determines whether collation should consider whitespace and punctuation as base characters during comparisons. |
--backwards | false | If true, strings with diacritics sort from the back to the front of the string. | |
--caseFirst | string | false | Determines the sort order of case differences during tertiary level comparisons. |
--caseLevel | false | If set to true, the index uses case comparison. This field applies only if the strength level is set to 1 or 2. | |
--collectionName | string | true | Collection name. |
--db | string | true | Database name. |
-h, --help | false | help for create | |
--key | strings | true | Index keys. Should be formatted as field:type. |
--locale | string | false | Locale that the ICU defines. |
--normalization | false | If true, collation checks if text requires normalization and performs normalization to compare text. | |
--numericOrdering | false | If set to true, collation compares numeric strings as numbers. If false, collation compares numeric strings as strings. | |
--projectId | string | false | Project ID to use. Overrides configuration file or environment variable settings. |
--rsName | string | true | The replica set that the index is built on. |
--sparse | false | Create a sparse index. | |
--strength | int | false | Level of comparison to perform. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |