You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example uses the ``phrase`` operator, which performs a search for documents
64
-
that contain an ordered sequence of terms. To learn more about the ``phrase`` operator, see the :atlas:`Phrase </atlas-search/phrase>` guide in the MongoDB Atlas documentation.
63
+
The following example uses the ``compound`` operator to combine several operators into a
64
+
single query. To learn more about the `compound`` operator, see the :atlas:`Compound
65
+
</atlas-search/compound>` guide in the MongoDB Atlas documentation.
66
+
67
+
The query has the following search criteria:
68
+
69
+
- The genres field must not contain Comedy.
70
+
- The title field must contain the string ``"new york"``.
65
71
66
-
The example performs a basic search of the ``title`` field for the query string ``"new york"``.
67
72
The query also includes the following stages:
68
73
69
74
- :pipeline:`$limit`, to limit the output to 10 results.
0 commit comments