We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640a373 commit db57054Copy full SHA for db57054
source/text-search.txt
@@ -57,12 +57,15 @@ Exact Phrase
57
````````````
58
59
You can also search for exact phrases by wrapping them in double-quotes.
60
-For example, the following will find all documents containing "java" or
+If the ``$search`` string includes a phrase and individual terms, text search
61
+will only match documents that include the phrase.
62
+
63
+For example, the following will find all documents containing
64
"coffee shop":
65
66
.. code-block:: javascript
67
- db.stores.find( { $text: { $search: "java \"coffee shop\"" } } )
68
+ db.stores.find( { $text: { $search: "\"coffee shop\"" } } )
69
70
Term Exclusion
71
``````````````
0 commit comments