@@ -17,7 +17,7 @@ title: Add fields to index.
17
17
level : 4
18
18
ref : index-fields
19
19
content : |
20
- To specify a key for the index, select the field and the index type
20
+ To specify a key for the index, select the field and the index type.
21
21
To index additional fields, click :guilabel:`Add Another Field`.
22
22
---
23
23
title : Optional. Specify the index options.
@@ -27,18 +27,55 @@ content: |
27
27
28
28
|compass-short| supports the following index options:
29
29
30
- * `Build the index in the background <https://docs.mongodb.com/master/core/index-creation/index.html#background-construction>`_
30
+ .. list-table::
31
+ :header-rows: 1
32
+ :widths: 40 60 20
31
33
32
- * :manual:`Create a unique index </core/index-unique>`
34
+ * - Option
35
+ - Description
36
+ - More Information
33
37
34
- * :manual:`Create a TTL Index </core/ index-ttl>`
38
+ * - Build index in the background
35
39
36
- * :manual:`Create a partial index </core/index-partial/>`
40
+ - If checked, ensure that the MongoDB deployment remains
41
+ available during the index build operation.
37
42
38
- * `Use custom collation <https://docs.mongodb.com/ manual/indexes /index.html#indexes-and-collation>`_
43
+ - : manual:`Background Construction </core /index-creation/index .html#background-construction>`
39
44
40
- For information on the Custom Collation settings, see :manual:`Collation Document </reference/collation/#collation-document>`
41
- in the MongoDB manual.
45
+ * - Create unique index
46
+
47
+ - If checked, ensure that the indexed fields do not
48
+ store duplicate values.
49
+
50
+ - :manual:`Unique Indexes </core/index-unique>`
51
+
52
+ * - Create :abbr:`TTL (Time to Live)`
53
+
54
+ - If checked, automatically delete documents after a
55
+ specified number of seconds since the indexed field value.
56
+
57
+ - :manual:`TTL Indexes </core/index-ttl>`
58
+
59
+ * - Partial filter expression
60
+
61
+ - If checked, only index documents which match the specified
62
+ filter expression.
63
+
64
+ - :manual:`Partial Indexes </core/index-partial/>`
65
+
66
+ * - Use custom collation
67
+
68
+ - If checked, create a custom collation for the index
69
+ using the options provided in |compass-short|.
70
+
71
+ - :manual:`Collation Document </reference/collation/#collation-document>`
72
+
73
+ * - Wildcard projection (*New in MongoDB 4.2*)
74
+
75
+ - If checked, support unknown or arbitrary fields
76
+ which match the specified projection in the index.
77
+
78
+ - :manual-next:`Wildcard Indexes </core/index-wildcard/>`
42
79
---
43
80
title : Click :guilabel:`Create` to create the index.
44
81
level : 4
0 commit comments