Skip to content

Commit ba6353d

Browse files
authored
DOCSP-26204 update instances of :doc: pointing to core/index-text with :ref: (#2087)
* DOCSP-26204 update instances of :doc: pointing to core/index-text with :ref: * internal review feedback
1 parent 08259c7 commit ba6353d

17 files changed

+51
-53
lines changed

source/core/index-sparse.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ ascending/descending index key(s), only the existence of the geospatial
9595
field(s) in a document determine whether the index references the
9696
document.
9797

98-
For sparse compound indexes that contain :doc:`text </core/index-text>`
98+
For sparse compound indexes that contain :ref:`text <index-feature-text>`
9999
index keys along with ascending/descending index keys, only the
100100
existence of the ``text`` index field(s) determine whether the index
101101
references a document.

source/includes/driver-remove-indexes-tabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
Where the value of ``nIndexesWas`` reflects the number of indexes
3232
*before* removing this index.
3333

34-
For :doc:`text </core/index-text>` indexes, pass the index name to the
34+
For :ref:`text <index-feature-text>` indexes, pass the index name to the
3535
:method:`db.collection.dropIndex()` method. See :ref:`drop-text-index`
3636
for details.
3737

source/includes/driver-view-existing-indexes-tabs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
List Specific Type of Indexes
4545
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4646

47-
To list all indexes of a certain type (such as :doc:`hashed
48-
</core/index-hashed>` or :doc:`text </core/index-text>`) for all
49-
collections in all database, run the following command in
47+
To list all indexes of a certain type (such as :ref:`hashed
48+
<index-type-hashed>` or :ref:`text <index-feature-text>`) for
49+
all collections in all database, run the following command in
5050
:binary:`~bin.mongosh`:
5151

5252
.. code-block:: javascript

source/includes/extracts-collation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ content: |
181181
The following indexes only support simple binary comparison and do
182182
not support :ref:`collation <collation>`:
183183
184-
- :doc:`text </core/index-text>` indexes,
184+
- :ref:`text <index-feature-text>` indexes,
185185
186186
- :doc:`2d </core/2d>` indexes, and
187187

source/includes/extracts-wildcard-indexes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ content: |
8686
8787
- :doc:`Compound </core/index-compound>`
8888
- :doc:`TTL </core/index-ttl>`
89-
- :doc:`Text </core/index-text>`
89+
- :ref:`text <index-feature-text>`
9090
- :doc:`2d (Geospatial) </core/geospatial-indexes>`
9191
- :doc:`2dsphere (Geospatial) </core/2dsphere>`
9292
- :doc:`Hashed </core/index-hashed>`

source/reference/command/createIndexes.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Each document in the ``indexes`` array can take the following fields:
295295
- :doc:`2dsphere </core/2dsphere>`
296296
- :doc:`2d </core/2d>`
297297
- :doc:`geoHaystack </core/geohaystack>`
298-
- :doc:`text </core/index-text>`
298+
- :ref:`text <index-feature-text>`
299299

300300
For a compound index that includes ``2dsphere`` index key(s)
301301
along with keys of other types, only the ``2dsphere`` index
@@ -364,7 +364,7 @@ Each document in the ``indexes`` array can take the following fields:
364364

365365
- document
366366

367-
- Optional. For :doc:`text </core/index-text>` indexes, a document that contains
367+
- Optional. For :ref:`text <index-feature-text>` indexes, a document that contains
368368
field and weight pairs. The weight is an integer ranging from 1 to
369369
99,999 and denotes the significance of the field relative to the
370370
other indexed fields in terms of the score. You can specify weights
@@ -378,7 +378,7 @@ Each document in the ``indexes`` array can take the following fields:
378378

379379
- string
380380

381-
- Optional. For :doc:`text </core/index-text>` indexes, the language that
381+
- Optional. For :ref:`text <index-feature-text>` indexes, the language that
382382
determines the list of stop words and the rules for the stemmer and
383383
tokenizer. See :ref:`text-search-languages` for the available
384384
languages and :doc:`/tutorial/specify-language-for-text-index` for
@@ -390,7 +390,7 @@ Each document in the ``indexes`` array can take the following fields:
390390

391391
- string
392392

393-
- Optional. For :doc:`text </core/index-text>` indexes, the name of the field, in
393+
- Optional. For :ref:`text <index-feature-text>` indexes, the name of the field, in
394394
the collection's documents, that contains the override language for
395395
the document. The default value is ``language``. See
396396
:ref:`specify-language-field-text-index-example` for an example.

source/reference/command/dropIndexes.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ The command takes the following fields:
6767

6868
- To drop a single index, specify either the index name,
6969
the index specification document (unless the index is a
70-
:doc:`text </core/index-text>` index), or an array of the
71-
index name. To drop a :doc:`text </core/index-text>` index,
72-
specify the index names instead of the index specification
73-
document. If this index is the last remaining shard key
74-
index, ``dropIndexes`` raises an error.
70+
:ref:`text <index-feature-text>` index), or an array of the
71+
index name. To drop a text index, specify the index names
72+
instead of the index specification document. If this index is
73+
the last remaining shard key index, ``dropIndexes`` raises an
74+
error.
7575

7676
- To drop multiple indexes (Available starting in MongoDB
7777
4.2), specify an array of the index names.
@@ -124,7 +124,7 @@ You cannot drop the default index on the ``_id`` field.
124124
text Indexes
125125
~~~~~~~~~~~~
126126

127-
To drop a :doc:`text </core/index-text>` index, specify the index name
127+
To drop a :ref:`text <index-feature-text>` index, specify the index name
128128
instead of the index specification document.
129129

130130
.. _dropIndexes-cmd-index-builds:

source/reference/limits.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Indexes
242242
The following index types only support simple binary comparison and
243243
do not support :ref:`collation <collation>`:
244244

245-
- :doc:`text </core/index-text>` indexes,
245+
- :ref:`text <index-feature-text>` indexes,
246246

247247
- :doc:`2d </core/2d>` indexes, and
248248

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ otherwise specified:
269269
- :doc:`2dsphere </core/2dsphere>`
270270
- :doc:`2d </core/2d>`
271271
- :doc:`geoHaystack </core/geohaystack>`
272-
- :doc:`text </core/index-text>`
272+
- :ref:`text <index-feature-text>`
273273

274274
For a compound index that includes ``2dsphere`` index key(s)
275275
along with keys of other types, only the ``2dsphere`` index
@@ -390,7 +390,7 @@ Collation and Index Use
390390
Options for ``text`` Indexes
391391
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
392392

393-
The following options are available for :doc:`text </core/index-text>`
393+
The following options are available for :ref:`text <index-feature-text>`
394394
indexes only:
395395

396396

@@ -408,7 +408,7 @@ indexes only:
408408

409409
- document
410410

411-
- Optional. For :doc:`text </core/index-text>` indexes, a document that contains
411+
- Optional. For ``text`` indexes, a document that contains
412412
field and weight pairs. The weight is an integer ranging from 1 to
413413
99,999 and denotes the significance of the field relative to the
414414
other indexed fields in terms of the score. You can specify weights
@@ -423,7 +423,7 @@ indexes only:
423423

424424
- string
425425

426-
- Optional. For :doc:`text </core/index-text>` indexes, the language that
426+
- Optional. For ``text`` indexes, the language that
427427
determines the list of stop words and the rules for the stemmer and
428428
tokenizer. See :ref:`text-search-languages` for the available
429429
languages and :doc:`/tutorial/specify-language-for-text-index` for
@@ -435,7 +435,7 @@ indexes only:
435435

436436
- string
437437

438-
- Optional. For :doc:`text </core/index-text>` indexes, the name of the field, in
438+
- Optional. For ``text`` indexes, the name of the field, in
439439
the collection's documents, that contains the override language for
440440
the document. The default value is ``language``. See
441441
:ref:`specify-language-field-text-index-example` for an example.

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ Definition
5252

5353

5454
MongoDB supports several different index types including
55-
:ref:`text <index-feature-text>`, :ref:`geospatial
56-
<index-feature-geospatial>`, and :ref:`hashed
57-
<index-type-hashed>` indexes. See :ref:`index types <index-types>`
58-
for more information.
55+
``text``, :ref:`geospatial <index-feature-geospatial>`, and
56+
:ref:`hashed <index-type-hashed>` indexes. See :ref:`index
57+
types <index-types>` for more information.
5958

6059
.. versionchanged:: 4.2
6160

@@ -299,7 +298,7 @@ otherwise specified:
299298
- :doc:`2dsphere </core/2dsphere>`
300299
- :doc:`2d </core/2d>`
301300
- :doc:`geoHaystack </core/geohaystack>`
302-
- :doc:`text </core/index-text>`
301+
- :ref:`text <index-feature-text>`
303302

304303
For a compound index that includes ``2dsphere`` index key(s)
305304
along with keys of other types, only the ``2dsphere`` index
@@ -408,7 +407,7 @@ Collation and Index Use
408407
Options for ``text`` Indexes
409408
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
410409

411-
The following options are available for :doc:`text </core/index-text>`
410+
The following options are available for :ref:`text <index-feature-text>`
412411
indexes only:
413412

414413

@@ -426,7 +425,7 @@ indexes only:
426425

427426
- document
428427

429-
- Optional. For :doc:`text </core/index-text>` indexes, a document that contains
428+
- Optional. For ``text`` indexes, a document that contains
430429
field and weight pairs. The weight is an integer ranging from 1 to
431430
99,999 and denotes the significance of the field relative to the
432431
other indexed fields in terms of the score. You can specify weights
@@ -441,7 +440,7 @@ indexes only:
441440

442441
- string
443442

444-
- Optional. For :doc:`text </core/index-text>` indexes, the language that
443+
- Optional. For ``text`` indexes, the language that
445444
determines the list of stop words and the rules for the stemmer and
446445
tokenizer. See :ref:`text-search-languages` for the available
447446
languages and :doc:`/tutorial/specify-language-for-text-index` for
@@ -453,7 +452,7 @@ indexes only:
453452

454453
- string
455454

456-
- Optional. For :doc:`text </core/index-text>` indexes, the name of the field, in
455+
- Optional. For ``text`` indexes, the name of the field, in
457456
the collection's documents, that contains the override language for
458457
the document. The default value is ``language``. See
459458
:ref:`specify-language-field-text-index-example` for an example.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Definition
5656
index either by the index name or by the index specification
5757
document.
5858

59-
To drop a :doc:`text </core/index-text>` index, specify the
59+
To drop a :ref:`text <index-feature-text>` index, specify the
6060
index name.
6161

6262
Starting in MongoDB 4.2, you cannot specify ``"*"`` to drop

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Definition
3737
you can pass the method either:
3838

3939
- The index specification document (unless the index is a
40-
:doc:`text </core/index-text>` index in which case, use the
40+
:ref:`text <index-feature-text>` index in which case, use the
4141
index name to drop):
4242

4343
.. code-block:: javascript
@@ -94,12 +94,11 @@ Definition
9494
**To drop all but the _id index from the collection**,
9595
omit the parameter.
9696

97-
**To drop a single index**, specify either the index name, the
98-
index specification document (unless the index is a
99-
:doc:`text </core/index-text>` index), or an array of the
100-
index name. To drop a :doc:`text </core/index-text>` index,
101-
specify the index name or an array of the index name instead
102-
of the index specification document.
97+
**To drop a single index**, specify either the index name,
98+
the index specification document (unless the index is a
99+
``text`` index), or an array of the index name. To drop a
100+
``text`` index, specify the index name or an array of the
101+
index name instead of the index specification document.
103102

104103
**To drop multiple indexes** (Available starting in MongoDB
105104
4.2), specify an array of the index names.
@@ -141,8 +140,8 @@ You cannot drop the default index on the ``_id`` field.
141140
text Indexes
142141
~~~~~~~~~~~~
143142

144-
To drop a :doc:`text </core/index-text>` index, specify the index name
145-
instead of the index specification document.
143+
To drop a ``text`` index, specify the index name instead of the index
144+
specification document.
146145

147146
.. _dropIndexes-method-index-builds:
148147

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ parameter:
6868
You can use the :method:`db.collection.getIndexes()` method
6969
to find the index name or the index specification document.
7070

71-
To hide a :doc:`text </core/index-text>` index, specify the
71+
To hide a :ref:`text <index-feature-text>` index, specify the
7272
index name.
7373

7474
The :method:`db.collection.hideIndex()` is a :binary:`mongosh` shell

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ parameter:
5656
You can use the :method:`db.collection.getIndexes()` method
5757
to find the index name or the index specification document.
5858

59-
To unhide a :doc:`text </core/index-text>` index, specify the
59+
To unhide a :ref:`text <index-feature-text>` index, specify the
6060
index name.
6161

6262
The :method:`db.collection.unhideIndex()` is a :binary:`mongosh` shell

source/reference/operator/query/text.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Definition
8282

8383
- Optional. A boolean flag to enable or disable case sensitive search. Defaults
8484
to ``false``; i.e. the search defers to the case insensitivity of the
85-
:doc:`text </core/index-text>` index.
85+
:ref:`text <index-feature-text>` index.
8686

8787
For more information, see :ref:`text-operator-case-sensitivity`.
8888

@@ -261,7 +261,7 @@ Case Insensitivity
261261
~~~~~~~~~~~~~~~~~~
262262

263263
The :query:`$text` operator defaults to the case insensitivity of the
264-
:doc:`text </core/index-text>` index:
264+
:ref:`text <index-feature-text>` index:
265265

266266
- The version 3 :ref:`text index <text-index-case-insensitivity>` is
267267
case insensitive for Latin characters with or without diacritics and
@@ -308,7 +308,7 @@ Diacritic Insensitivity
308308
~~~~~~~~~~~~~~~~~~~~~~~
309309

310310
The :query:`$text` operator defaults to the diacritic insensitivity of
311-
the :doc:`text </core/index-text>` index:
311+
the :ref:`text <index-feature-text>` index:
312312

313313
- The version 3 :ref:`text index <text-index-diacritic-insensitivity>` is
314314
diacritic insensitive. That is, the index does not distinguish
@@ -368,7 +368,7 @@ Examples
368368
--------
369369

370370
The following examples assume a collection ``articles`` that has a
371-
version 3 :doc:`text </core/index-text>` index on the field ``subject``:
371+
version 3 :ref:`text <index-feature-text>` index on the field ``subject``:
372372

373373
.. code-block:: javascript
374374

source/release-notes/3.2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ MongoDB 3.2 introduces a version 3 of the :doc:`text index
963963
<text-index-tokenization-delimiters>`.
964964

965965
Starting in MongoDB 3.2, version 3 is the default version for new
966-
:doc:`text </core/index-text>` indexes.
966+
:ref:`text <index-feature-text>` indexes.
967967

968968
.. seealso::
969969

source/tutorial/avoid-text-index-name-limit.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ You can pass the ``name`` option to the
6262
Use the Index Name to Drop a ``text`` Index
6363
-------------------------------------------
6464

65-
Whether the :doc:`text </core/index-text>` index has the default name
66-
or you specified a name for the :doc:`text </core/index-text>` index,
67-
to drop the :doc:`text </core/index-text>` index, pass the index name
68-
to the :method:`db.collection.dropIndex()` method.
65+
Whether the :ref:`text <index-feature-text>` index has the default name
66+
or you specified a name for the ``text`` index, to drop the ``text``
67+
index, pass the index name to the :method:`db.collection.dropIndex()`
68+
method.
6969

7070
For example, consider the index created by the following operation:
7171

0 commit comments

Comments
 (0)