Skip to content

Commit 8d345d8

Browse files
committed
change query leadin
1 parent fde6b8c commit 8d345d8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

source/atlas-search.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,15 @@ a collector that groups results by values or ranges. To view a table of all the
6060
and collectors available with Atlas Search, see :atlas:`Use Operators and Collectors in
6161
Atlas Search Queries </atlas-search/operators-and-collectors>`.
6262

63-
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"``.
6571

66-
The example performs a basic search of the ``title`` field for the query string ``"new york"``.
6772
The query also includes the following stages:
6873

6974
- :pipeline:`$limit`, to limit the output to 10 results.

0 commit comments

Comments
 (0)