Skip to content

Commit b2164e2

Browse files
(DOCSP-13152): Improve Atlas Search callouts
updates per review
1 parent 34cba67 commit b2164e2

10 files changed

+41
-8
lines changed

source/core/index-text.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Text Indexes
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-atlas-search-banner.rst
16-
1715
Overview
1816
--------
1917

source/core/text-search-operators.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ For more information and examples of text search in the
5353
:doc:`/aggregation` framework, see
5454
:doc:`/tutorial/text-search-in-aggregation`.
5555

56+
.. include:: /includes/fact-atlas-search-search-stage.rst
57+
5658
.. [#meta-aggregation]
5759

5860
.. include:: /includes/fact-meta-operator-disambiguation.rst
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
For data hosted on MongoDB Atlas, :atlas:`Atlas Search </atlas-search>`
2+
provides support for additional languages. To see the complete list of
3+
languages supported by Atlas Search, see the :atlas:`Atlas Search
4+
Language Analyzers </reference/atlas-search/analyzers/language/>`.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
For data hosted on MongoDB Atlas, :atlas:`Atlas Search </atlas-search>`
2+
provides the :atlas:`$search </reference/atlas-search/query-syntax/>`
3+
aggregation stage to perform full-text search on your collections.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
A collection can have at most **one** ``text`` index.
2+
3+
Atlas Search (available in `MongoDB Atlas
4+
<https://www.mongodb.com/cloud/atlas?tck=docs_server>`__) supports
5+
multiple full-text search indexes on a single collection. To learn more,
6+
see the :atlas:`Atlas Search documentation </atlas-search>`.

source/reference/operator/query/text.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ $text
1010
:depth: 1
1111
:class: singlecol
1212

13-
.. include:: /includes/fact-atlas-search-banner.rst
14-
1513
Definition
1614
----------
1715

@@ -165,6 +163,15 @@ The :query:`text` operator treats most punctuation
165163
in the string as delimiters, except a hyphen-minus (``-``) that negates term or
166164
an escaped double quotes ``\"`` that specifies a phrase.
167165

166+
.. note::
167+
168+
The ``$search`` field for the :query:`$text` expression is different
169+
than the the :atlas:`$search aggregation stage
170+
</reference/atlas-search/query-syntax/>` provided by
171+
:atlas:`Atlas Search </atlas-search>`. The ``$search`` aggregation
172+
stage performs full-text search on specified fields and is only
173+
available on MongoDB Atlas.
174+
168175
.. _text-operator-phrases:
169176

170177
Phrases

source/reference/text-search-languages.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ language name:
7474

7575
.. include:: /includes/fact-text-search-language-none.rst
7676

77+
.. include:: /includes/fact-atlas-search-languages.rst
78+
7779
.. seealso:: :doc:`/tutorial/specify-language-for-text-index`
7880

source/text-search.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ Text Search
1010
:depth: 1
1111
:class: singlecol
1212

13-
.. include:: /includes/fact-atlas-search-banner.rst
14-
1513
Overview
1614
--------
1715

@@ -108,6 +106,8 @@ MongoDB supports text search for various languages. See
108106
:doc:`/reference/text-search-languages` for a list of supported
109107
languages.
110108

109+
.. include:: /includes/fact-atlas-search-languages.rst
110+
111111
.. toctree::
112112
:titlesonly:
113113
:hidden:

source/tutorial/control-results-of-text-search.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ each other. For instance, a term match in the ``content`` field has:
7777

7878
- ``10`` times (i.e. ``10:1``) the impact as a term match in the
7979
``about`` field.
80+
81+
.. note::
82+
83+
For data hosted on MongoDB Atlas,
84+
:atlas:`Atlas Search </atlas-search>` provides more robust custom
85+
scoring than ``text`` indexes. To learn more, see the Atlas Search
86+
:atlas:`Scoring </reference/atlas-search/scoring/>` documentation.

source/tutorial/text-search-in-aggregation.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In the aggregation pipeline, text search is available via the use of
1616
the :query:`$text` query operator in the :pipeline:`$match` stage.
1717

1818
Restrictions
19-
~~~~~~~~~~~~
19+
------------
2020

2121
For general :query:`$text` operator restrictions, see :ref:`operator
2222
restrictions <text-query-operator-behavior>`.
@@ -36,7 +36,7 @@ restrictions:
3636
.. |sort-object| replace:: :pipeline:`$sort` pipeline
3737

3838
Text Score
39-
~~~~~~~~~~
39+
----------
4040

4141
.. include:: /includes/fact-text-search-score.rst
4242

@@ -132,3 +132,8 @@ matching documents in the :pipeline:`$group` stage.
132132
{ $group: { _id: null, views: { $sum: "$views" } } }
133133
]
134134
)
135+
136+
``$search`` Stage in Atlas Search
137+
---------------------------------
138+
139+
.. include:: /includes/fact-atlas-search-search-stage.rst

0 commit comments

Comments
 (0)