Skip to content

Commit 62d160b

Browse files
npentreljeff-allen-mongo
authored andcommitted
DOCS-14827: $merge and partial indexes
1 parent 64e21f4 commit 62d160b

File tree

1 file changed

+5
-2
lines changed
  • source/reference/operator/aggregation

1 file changed

+5
-2
lines changed

source/reference/operator/aggregation/merge.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ The :pipeline:`$merge` takes a document with the following fields:
184184
- The unique index can be a :ref:`sparse <index-type-sparse>`
185185
index.
186186

187+
- The unique index cannot be a :ref:`partial <index-type-partial>`
188+
index.
189+
187190
- For output collections that already exist, the corresponding
188191
index must already exist.
189192

@@ -517,10 +520,10 @@ The ``newrestaurants`` collection will contain documents with
517520
information on new restaurant openings by month (``date`` field) and
518521
postcode (shard key); specifically, the :ref:`on <merge-on>`
519522
identifier is ``["date", "postcode"]`` (the ordering of the fields
520-
does not matter). Because :pipeline:`$merge` requires a unique,
523+
does not matter). Because :pipeline:`$merge` requires a unique
521524
index with keys that correspond to the :ref:`on
522525
<merge-on>` identifier fields, create the unique index
523-
(the ordering of the fields do not matter): [#uniqueoption]_
526+
(the ordering of the fields do not matter): [#uniqueoption]_
524527

525528
.. code-block:: javascript
526529

0 commit comments

Comments
 (0)