Skip to content

Commit a4ee267

Browse files
author
Dave Cuthbert
authored
DOCSP-25014 BACKPORT (#1779)
1 parent 8bc958e commit a4ee267

File tree

6 files changed

+4
-50
lines changed

6 files changed

+4
-50
lines changed

config/redirects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,8 @@ raw: /v2.8/release-notes/2.8-changes -> ${base}/v3.0/release-notes/3.0/
15961596
[v4.2-*]: /${version}/reference/method/db.getPrevError -> ${base}/${version}/reference/method/
15971597
[v4.2-*]: /${version}/reference/read-preference -> ${base}/${version}/core/read-preference/
15981598

1599+
[v4.2-*]: ${prefix}/${version}/reference/operator/query/uniqueDocs -> ${base}/${version}/release-notes/2.6-compatibility.txt
1600+
15991601
# Redirects for 4.0 or earlier (i.e. before 4.2), stopping at v3.0 since otherwise to help slow the growth in the number of our redirects
16001602

16011603
[v3.0-v4.0]: /${version}/release-notes/4.2 -> ${base}/${version}/release-notes/

source/includes/deprecation-uniqueDocs.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

source/reference/operator/aggregation/geoNear.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -159,23 +159,6 @@ Definition
159159

160160
*Default: false.*
161161

162-
163-
* - ``uniqueDocs``
164-
165-
- boolean
166-
167-
- Optional. If this value is ``true``, the query returns a matching document once,
168-
even if more than one of the document's location fields match the
169-
query.
170-
171-
.. include:: /includes/deprecation-uniqueDocs.rst
172-
173-
174-
175-
176-
177-
178-
179162
Behavior
180163
--------
181164

source/reference/operator/query-geospatial.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ Geometry Specifiers
129129
- Specifies a polygon to using legacy coordinate pairs for
130130
:query:`$geoWithin` queries. The :doc:`2d </core/2d>` index supports
131131
:query:`$center`.
132-
133-
134-
* - :query:`$uniqueDocs`
135-
136-
- Deprecated. Modifies a :query:`$geoWithin` and :query:`$near` queries to ensure that even if a document matches the query multiple times, the query returns the document once.
137-
138132

139133
.. toctree::
140134
:titlesonly:
@@ -147,4 +141,4 @@ Geometry Specifiers
147141
/reference/operator/query/maxDistance
148142
/reference/operator/query/minDistance
149143
/reference/operator/query/polygon
150-
/reference/operator/query/uniqueDocs
144+

source/reference/operator/query/uniqueDocs.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

source/release-notes/2.6-compatibility.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ Deprecated ``$uniqueDocs``
679679
``````````````````````````
680680

681681
Description
682-
MongoDB 2.6 deprecates :query:`$uniqueDocs`, and geospatial queries
682+
MongoDB 2.6 deprecates ``$uniqueDocs``, and geospatial queries
683683
no longer return duplicated results when a document matches the
684684
query multiple times.
685685

0 commit comments

Comments
 (0)