Skip to content

Commit e8ecf50

Browse files
committed
Fix broken Atlas search operator links
1 parent 89c7049 commit e8ecf50

File tree

1 file changed

+42
-36
lines changed

1 file changed

+42
-36
lines changed

docs/ref/models/search.rst

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ For the examples in this document, we'll use the following models::
3636

3737
Matches documents where a field is equal to a given value.
3838

39-
Uses the :doc:`equals operator <atlas:atlas-search/equals>` to perform exact
40-
matches on fields indexed in a MongoDB Atlas Search index.
39+
Uses the :doc:`equals operator<atlas:atlas-search/operators-collectors/equals>`
40+
to perform exact matches on fields indexed in a MongoDB Atlas Search index.
4141

4242
.. code-block:: pycon
4343
@@ -58,9 +58,10 @@ matches on fields indexed in a MongoDB Atlas Search index.
5858

5959
Enables autocomplete behavior on string fields.
6060

61-
Uses the :doc:`autocomplete operator <atlas:atlas-search/autocomplete>` to
62-
match the input query against a field indexed with ``"type": "autocomplete"``
63-
in a MongoDB Atlas Search index.
61+
Uses the :doc:`autocomplete operator
62+
<atlas:atlas-search/operators-collectors/autocomplete>` to match the input
63+
query against a field indexed with ``"type": "autocomplete"`` in a MongoDB
64+
Atlas Search index.
6465

6566
.. code-block:: pycon
6667
@@ -87,9 +88,9 @@ in a MongoDB Atlas Search index.
8788

8889
Matches documents where a field exists.
8990

90-
Uses the :doc:`exists operator <atlas:atlas-search/exists>` to check whether
91-
the specified path is present in the document. It's useful for filtering
92-
documents that include (or exclude) optional fields.
91+
Uses the :doc:`exists operator<atlas:atlas-search/operators-collectors/exists>`
92+
to check whether the specified path is present in the document. It's useful for
93+
filtering documents that include (or exclude) optional fields.
9394

9495
.. code-block:: pycon
9596
@@ -112,8 +113,8 @@ documents that include (or exclude) optional fields.
112113

113114
Matches documents where a field's value is in a given list.
114115

115-
Uses the :doc:`in operator <atlas:atlas-search/in>` to match documents whose
116-
field contains a value from the provided array.
116+
Uses the :doc:`in operator <atlas:atlas-search/operators-collectors/in>` to
117+
match documents whose field contains a value from the provided array.
117118

118119
.. code-block:: pycon
119120
@@ -137,9 +138,9 @@ field contains a value from the provided array.
137138

138139
Matches a phrase in the specified field.
139140

140-
Uses the :doc:`phrase operator <atlas:atlas-search/phrase>` to find exact or
141-
near-exact sequences of terms. It supports optional slop (term distance) and
142-
synonym mappings defined in the Atlas Search index.
141+
Uses the :doc:`phrase operator<atlas:atlas-search/operators-collectors/phrase>`
142+
to find exact or near-exact sequences of terms. It supports optional slop (term
143+
distance) and synonym mappings defined in the Atlas Search index.
143144

144145
.. code-block:: pycon
145146
@@ -167,9 +168,10 @@ synonym mappings defined in the Atlas Search index.
167168

168169
Matches using a Lucene-style query string.
169170

170-
Uses the :doc:`queryString operator <atlas:atlas-search/queryString>` to parse
171-
and execute full-text queries written in a simplified Lucene syntax. It
172-
supports features like boolean operators, wildcards, and field-specific terms.
171+
Uses the :doc:`queryString operator
172+
<atlas:atlas-search/operators-collectors/queryString>` to parse and execute
173+
full-text queries written in a simplified Lucene syntax. It supports features
174+
like boolean operators, wildcards, and field-specific terms.
173175

174176
.. code-block:: pycon
175177
@@ -196,8 +198,9 @@ supports features like boolean operators, wildcards, and field-specific terms.
196198

197199
Filters documents within a specified range of values.
198200

199-
Uses the :doc:`range operator <atlas:atlas-search/range>` to match numeric,
200-
date, or other comparable fields based on upper and/or lower bounds.
201+
Uses the :doc:`range operator <atlas:atlas-search/operators-collectors/range>`
202+
to match numeric, date, or other comparable fields based on upper and/or lower
203+
bounds.
201204

202205
.. code-block:: pycon
203206
@@ -224,8 +227,8 @@ date, or other comparable fields based on upper and/or lower bounds.
224227

225228
Matches string fields using a regular expression.
226229

227-
Uses the :doc:`regex operator <atlas:atlas-search/regex>` to match a regular
228-
expression pattern to the contents of a specified field.
230+
Uses the :doc:`regex operator <atlas:atlas-search/operators-collectors/regex>`
231+
to match a regular expression pattern to the contents of a specified field.
229232

230233
.. code-block:: pycon
231234
@@ -250,7 +253,7 @@ expression pattern to the contents of a specified field.
250253
.. class:: SearchText(path, query, *, fuzzy=None, match_criteria=None, synonyms=None, score=None)
251254

252255
Performs full-text search using the :doc:`text operator
253-
<atlas:atlas-search/text>`.
256+
<atlas:atlas-search/operators-collectors/text>`.
254257

255258
Matches terms in the specified field. Supports fuzzy matching, match criteria,
256259
and synonym mappings.
@@ -285,8 +288,9 @@ and synonym mappings.
285288

286289
Matches strings using wildcard patterns.
287290

288-
Uses the :doc:`wildcard operator <atlas:atlas-search/wildcard>` to search for
289-
terms matching a pattern with ``*`` (any sequence of characters) and ``?`` (any
291+
Uses the :doc:`wildcard operator
292+
<atlas:atlas-search/operators-collectors/wildcard>` to search for terms
293+
matching a pattern with ``*`` (any sequence of characters) and ``?`` (any
290294
single character) wildcards.
291295

292296
.. code-block:: pycon
@@ -315,9 +319,9 @@ single character) wildcards.
315319

316320
Filters documents based on spatial relationships with a geometry.
317321

318-
Uses the :doc:`geoShape operator <atlas:atlas-search/geoShape>` to match
319-
documents where a geo field has a specified spatial relation to a given GeoJSON
320-
geometry.
322+
Uses the :doc:`geoShape operator
323+
<atlas:atlas-search/operators-collectors/geoShape>` to match documents where a
324+
geo field has a specified spatial relation to a given GeoJSON geometry.
321325

322326
.. code-block:: pycon
323327
@@ -346,9 +350,9 @@ geometry.
346350

347351
Filters documents with geo fields contained within a specified shape.
348352

349-
Uses the :doc:`geoWithin operator <atlas:atlas-search/geoWithin>` to match
350-
documents where the geo field lies entirely within the provided GeoJSON
351-
geometry.
353+
Uses the :doc:`geoWithin operator
354+
<atlas:atlas-search/operators-collectors/geoWithin>` to match documents where
355+
the geo field lies entirely within the provided GeoJSON geometry.
352356

353357
.. code-block:: pycon
354358
@@ -377,8 +381,9 @@ geometry.
377381

378382
Finds documents similar to the provided examples.
379383

380-
Uses the :doc:`moreLikeThis operator <atlas:atlas-search/morelikethis>` to
381-
retrieve documents that resemble one or more example documents.
384+
Uses the :doc:`moreLikeThis operator
385+
<atlas:atlas-search/operators-collectors/morelikethis>` to retrieve documents
386+
that resemble one or more example documents.
382387

383388
.. code-block:: pycon
384389
@@ -407,10 +412,11 @@ retrieve documents that resemble one or more example documents.
407412

408413
Compound expression that combines multiple search clauses using boolean logic.
409414

410-
Uses the :doc:`compound operator <atlas:atlas-search/compound>` to combine
411-
sub-expressions with ``must``, ``must_not``, ``should``, and ``filter``
412-
clauses. It enables fine-grained control over how multiple conditions
413-
contribute to document matching and scoring.
415+
Uses the :doc:`compound operator
416+
<atlas:atlas-search/operators-collectors/compound>` to combine sub-expressions
417+
with ``must``, ``must_not``, ``should``, and ``filter`` clauses. It enables
418+
fine-grained control over how multiple conditions contribute to document
419+
matching and scoring.
414420

415421
.. code-block:: pycon
416422
@@ -537,7 +543,7 @@ The ``search`` lookup
537543

538544
Use the ``search`` lookup on :class:`~django.db.models.CharField` and
539545
:class:`~django.db.models.TextField` to perform full-text searches using the
540-
:doc:`text operator <atlas:atlas-search/text>`:
546+
:doc:`text operator <atlas:atlas-search/operators-collectors/text>`:
541547

542548
.. code-block:: pycon
543549

0 commit comments

Comments
 (0)