Skip to content

Commit d98f9d1

Browse files
committed
DOCS-12032,DOCS-11942: index key limit fcv4.2 part2
1 parent 71b3e91 commit d98f9d1

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

source/includes/fact-index-key-length-operation-behaviors.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
33
MongoDB will **not** create an index
44
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|.
76

87
.. index-field-limit-reIndex
98

source/reference/method/db.collection.createIndex.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@ described here.
134134

135135
.. include:: /includes/extracts/createIndex-behavior.rst
136136

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|.
140141

141-
.. |limit| replace:: :limit:`Maximum Index Key Length <Index Key>`
142+
.. |limit| replace:: :limit:`Maximum Index Key Length <Index Key Limit>`
142143

143144
Examples
144145
--------

source/reference/method/db.collection.createIndexes.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@ behaviors.
123123

124124
.. include:: /includes/extracts/createIndexes-behavior.rst
125125

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|.
129130

130-
.. |limit| replace:: :limit:`Maximum Index Key Length <Index Key>`
131+
.. |limit| replace:: :limit:`Maximum Index Key Length <Index Key Limit>`
131132

132133
Example
133134
-------

source/reference/method/db.collection.reIndex.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ Behavior
4545

4646
.. include:: /includes/important-reindex-locking.rst
4747

48-
.. |limit| replace:: :limit:`Maximum Index Key Length <Index Key>`
48+
.. |limit| replace:: :limit:`Maximum Index Key Length <Index Key Limit>`
4949

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|.
5554

5655
.. seealso:: :doc:`/indexes`

0 commit comments

Comments
 (0)