@@ -127,18 +127,37 @@ To ``$explain`` an aggregation pipeline, call the
127127
128128.. _java-rs-atlas-search-stage:
129129
130- Pipeline Stages for Atlas Search
131- --------------------------------
130+ Atlas Search
131+ ------------
132132
133- :atlas:`Atlas Search </atlas-search>` queries take the form of an aggregation pipeline stage. Atlas
134- Search provides ``$search`` and ``$searchMeta`` stages, both of which must be the first
135- stage in any query pipeline. For more information about Atlas pipeline stages,
136- see the :atlas:`Choose the Aggregation Pipeline Stage
137- </atlas-search/query-syntax/>` page in the Atlas
138- manual.
133+ You can perform an :atlas:`Atlas Search </atlas-search>` query by creating and running
134+ an aggregation pipeline that contains one of the following pipeline stages:
135+
136+ - ``$search``
137+ - ``$searchMeta``
138+
139+ The {+driver-short+} provides the `Aggregates.search()
140+ <{+core-api+}/client/model/Aggregates.html#search(com.mongodb.client.model.search.SearchOperator)>`__
141+ and `Aggregates.searchMeta()
142+ <{+core-api+}/client/model/Aggregates.html#searchMeta(com.mongodb.client.model.search.SearchOperator)>`__
143+ methods to perform Atlas Search queries.
144+
145+ To learn more about Atlas Search pipeline stages, see :atlas:`Choose the
146+ Aggregation Pipeline Stage </atlas-search/query-syntax/>` in the Atlas
147+ documentation.
148+
149+ Create Pipeline Search Stages
150+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
151+
152+ You can create the search criteria in your Atlas Search pipeline stage
153+ by using Search operators.
139154
140155.. sharedinclude:: dbx/jvm/atlas-search-operator-helpers.rst
141156
157+ .. replacement:: as-idx-link
158+
159+ the :ref:`java-rs-atlas-search-idx-mgmt` section of the Indexes guide
160+
142161 .. replacement:: atlas-query-operators-example
143162
144163 .. io-code-block::
@@ -153,9 +172,33 @@ manual.
153172 :language: console
154173 :visible: false
155174
156- {"_id": {"$oid": "573a1397f29313caabce86db"}, "genres": ["Drama", "Sport"], "cast": ["Sylvester Stallone", "Talia Shire", "Burt Young", "Carl Weathers"], "title": "Rocky III", "year": 1982}
157- {"_id": {"$oid": "573a1398f29313caabce9af0"}, "genres": ["Drama", "Sport"], "cast": ["Sylvester Stallone", "Talia Shire", "Burt Young", "Carl Weathers"], "title": "Rocky IV", "year": 1985}
175+ {"_id": ..., "genres": ["Comedy", "Romance"], "title": "Love at First Bite", "year": 1979}
176+ {"_id": ..., "genres": ["Comedy", "Drama"], "title": "Love Affair", "year": 1994}
177+
178+ Additional Information
179+ ----------------------
180+
181+ To view a full list of expression operators, see :manual:`Aggregation
182+ Operators </reference/operator/aggregation/>` in the {+mdb-server+} manual.
183+
184+ To learn about assembling an aggregation pipeline and view examples, see
185+ :manual:`Aggregation Pipeline </core/aggregation-pipeline/>` in the {+mdb-server+} manual.
186+
187+ To learn more about creating pipeline stages, see :manual:`Aggregation
188+ Stages </reference/operator/aggregation-pipeline/>` in the {+mdb-server+} manual.
189+
190+ To learn more about explaining MongoDB operations, see
191+ :manual:`Explain Output </reference/explain-results/>` and
192+ :manual:`Query Plans </core/query-plans/>` in the {+mdb-server+} manual.
193+
194+ API Documentation
195+ ~~~~~~~~~~~~~~~~~
158196
159- .. replacement:: searchoperator-interface-api-docs
197+ To learn more about the classes and methods mentioned in this guide, see
198+ the following API documentation:
160199
161- the `SearchOperator Interface API documentation <{+core-api+}/client/model/search/SearchOperator.html>`__
200+ - `aggregate() <{+driver-api+}/MongoCollection.html#aggregate(java.util.List)>`__
201+ - `Aggregates <{+core-api+}/client/model/Aggregates.html>`__
202+ - `AggregatePublisher <{+driver-api+}/AggregatePublisher.html>`__
203+ - `search() <{+core-api+}/client/model/Aggregates#search(com.mongodb.client.model.search.SearchOperator)>`__
204+ - `project() <{+core-api+}/client/model/Aggregates#project(org.bson.conversions.Bson)>`__
0 commit comments