Skip to content

Commit ebd4945

Browse files
ianf-mongodbjeff-allen-mongo
authored andcommitted
DOCSP-17841-Add-Blurp-Create-Index-Page
1 parent 63daad8 commit ebd4945

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,9 @@ indexes only:
426426
for some or all the indexed fields. See
427427
:doc:`/tutorial/control-results-of-text-search` to adjust the scores.
428428
The default value is ``1``.
429-
430-
429+
430+
Starting in MongoDB 5.0, the :ref:`weights <specify-weights>`
431+
option is only allowed for text indexes.
431432

432433
* - ``default_language``
433434

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,9 @@ indexes only:
438438
for some or all the indexed fields. See
439439
:doc:`/tutorial/control-results-of-text-search` to adjust the scores.
440440
The default value is ``1``.
441-
442-
441+
442+
Starting in MongoDB 5.0, the :ref:`weights <specify-weights>`
443+
option is only allowed for text indexes.
443444

444445
* - ``default_language``
445446

0 commit comments

Comments
 (0)