@@ -195,7 +195,7 @@ plan:
195
195
...}
196
196
197
197
Run an Atlas Full-Text Search
198
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
198
+ -----------------------------
199
199
200
200
.. tip:: Only Available on Atlas for MongoDB v4.2 and later
201
201
@@ -244,6 +244,34 @@ This example creates pipeline stages to perform the following actions:
244
244
placeholder with the name of the index. To learn more about Atlas Search indexes, see
245
245
the :ref:`scala-atlas-search-index` guide.
246
246
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
+
247
275
Additional Information
248
276
----------------------
249
277
@@ -282,4 +310,3 @@ following API documentation:
282
310
- `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]>`__
283
311
- `Aggregates <{+driver-api+}/model/Aggregates$.html>`__
284
312
- `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