@@ -195,7 +195,7 @@ plan:
195195 ...}
196196
197197Run an Atlas Full-Text Search
198- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
198+ -----------------------------
199199
200200.. tip:: Only Available on Atlas for MongoDB v4.2 and later
201201
@@ -244,6 +244,34 @@ This example creates pipeline stages to perform the following actions:
244244 placeholder with the name of the index. To learn more about Atlas Search indexes, see
245245 the :ref:`scala-atlas-search-index` guide.
246246
247+ .. _scala-atlas-search-helper-methods:
248+
249+ Search Operator Helper Methods
250+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
251+
252+ .. sharedinclude:: dbx/jvm/atlas-search-operator-helpers.rst
253+
254+ .. replacement:: as-idx-link
255+
256+ the :ref:`scala-atlas-search-index` guide
257+
258+ .. replacement:: atlas-query-operators-example
259+
260+ .. io-code-block::
261+
262+ .. input:: /includes/aggregation.scala
263+ :language: scala
264+ :start-after: // start-atlas-helper-methods
265+ :end-before: // end-atlas-helper-methods
266+ :dedent:
267+
268+ .. output::
269+ :language: console
270+ :visible: false
271+
272+ {"_id": ..., "genres": ["Comedy", "Romance"], "title": "Love at First Bite", "year": 1979}
273+ {"_id": ..., "genres": ["Comedy", "Drama"], "title": "Love Affair", "year": 1994}
274+
247275Additional Information
248276----------------------
249277
@@ -282,4 +310,3 @@ following API documentation:
282310- `aggregate() <{+driver-api+}/MongoCollection.html#aggregate[C](pipeline:Seq[org.mongodb.scala.bson.conversions.Bson])(implicite:org.mongodb.scala.bson.DefaultHelper.DefaultsTo[C,TResult],implicitct:scala.reflect.ClassTag[C]):org.mongodb.scala.AggregateObservable[C]>`__
283311- `Aggregates <{+driver-api+}/model/Aggregates$.html>`__
284312- `explain() <{+driver-api+}/AggregateObservable.html#explain[ExplainResult](verbosity:com.mongodb.ExplainVerbosity)(implicite:org.mongodb.scala.bson.DefaultHelper.DefaultsTo[ExplainResult,org.mongodb.scala.Document],implicitct:scala.reflect.ClassTag[ExplainResult]):org.mongodb.scala.SingleObservable[ExplainResult]>`__
285-
0 commit comments