File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 2
2
3
3
MongoDB will **not ** create an index
4
4
on a collection if the index entry for
5
- an existing document exceeds the |limit |. Previous versions of MongoDB
6
- would create the index but not index such documents.
5
+ an existing document exceeds the |limit |.
7
6
8
7
.. index-field-limit-reIndex
9
8
Original file line number Diff line number Diff line change @@ -134,11 +134,12 @@ described here.
134
134
135
135
.. include:: /includes/extracts/createIndex-behavior.rst
136
136
137
- - .. include:: /includes/fact-index-key-length-operation-behaviors.rst
138
- :start-after: index-field-limit-ensureIndex
139
- :end-before: .. index-field-limit-reIndex
137
+ - For MongoDB 2.6 through MongoDB versions with
138
+ :ref:`featureCompatibilityVersion <view-fcv>` (fCV) set to ``"4.0"``
139
+ or earlier, MongoDB will **not** create an index on a collection if
140
+ the index entry for an existing document exceeds the |limit|.
140
141
141
- .. |limit| replace:: :limit:`Maximum Index Key Length <Index Key>`
142
+ .. |limit| replace:: :limit:`Maximum Index Key Length <Index Key Limit >`
142
143
143
144
Examples
144
145
--------
Original file line number Diff line number Diff line change @@ -123,11 +123,12 @@ behaviors.
123
123
124
124
.. include:: /includes/extracts/createIndexes-behavior.rst
125
125
126
- - .. include:: /includes/fact-index-key-length-operation-behaviors.rst
127
- :start-after: index-field-limit-ensureIndex
128
- :end-before: .. index-field-limit-reIndex
126
+ - For MongoDB 2.6 through MongoDB versions with
127
+ :ref:`featureCompatibilityVersion <view-fcv>` (fCV) set to ``"4.0"``
128
+ or earlier, MongoDB will **not** create an index on a collection if
129
+ the index entry for an existing document exceeds the |limit|.
129
130
130
- .. |limit| replace:: :limit:`Maximum Index Key Length <Index Key>`
131
+ .. |limit| replace:: :limit:`Maximum Index Key Length <Index Key Limit >`
131
132
132
133
Example
133
134
-------
Original file line number Diff line number Diff line change @@ -45,12 +45,11 @@ Behavior
45
45
46
46
.. include:: /includes/important-reindex-locking.rst
47
47
48
- .. |limit| replace:: :limit:`Maximum Index Key Length <Index Key>`
48
+ .. |limit| replace:: :limit:`Maximum Index Key Length <Index Key Limit >`
49
49
50
- .. versionchanged:: 2.6
51
-
52
- .. include:: /includes/fact-index-key-length-operation-behaviors.rst
53
- :start-after: index-field-limit-reIndex
54
- :end-before: index-field-limit-insert
50
+ - For MongoDB 2.6 through MongoDB versions with
51
+ :ref:`featureCompatibilityVersion <view-fcv>` (fCV) set to ``"4.0"``
52
+ or earlier, MongoDB will **not** create an index on a collection if
53
+ the index entry for an existing document exceeds the |limit|.
55
54
56
55
.. seealso:: :doc:`/indexes`
You can’t perform that action at this time.
0 commit comments