Skip to content

Commit 06d2c94

Browse files
committed
rachelm review
1 parent 3467f3f commit 06d2c94

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

source/atlas-search.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ Run an Atlas Search Query
3939
-------------------------
4040

4141
This section shows how to create an aggregation pipeline to run an
42-
Atlas Search query on a collection. In your array of pipeline stages,
43-
add the ``$search`` stage to specify the search criteria. Then, call
42+
Atlas Search query on a collection.
43+
44+
To run an Atlas Search query, you must create an Atlas Search index on your
45+
collection. To learn how to programmatically create
46+
an Atlas Search index, see the :ref:`golang-atlas-search-indexes` section of the
47+
Indexes guide.
48+
49+
After you create an Atlas Search index, add the ``$search`` stage in your array
50+
of pipeline stages to specify the search criteria. Then, call
4451
the ``Aggregate()`` method and pass your pipeline array as a parameter.
4552

4653
.. tip::
@@ -97,8 +104,9 @@ following actions:
97104
Additional Information
98105
----------------------
99106

100-
To learn more about Atlas Search, see :atlas:`Atlas Search </atlas-search/>`
101-
in the Atlas documentation.
107+
To learn more about Atlas Search, see the :atlas:`Atlas Search </atlas-search/>`
108+
guides and the :atlas:`$search </atlas-search/aggregation-stages/search/>` pipeline
109+
stage reference in the Atlas documentation.
102110

103111
API Documentation
104112
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)