Skip to content

Commit b70545d

Browse files
committed
add index
1 parent 1f19022 commit b70545d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/atlas-search.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ The query also includes a:
6969
.. input::
7070
:language: python
7171

72-
client = pymongo.MongoClient('<connection-string>')
73-
result = client['sample_mflix']['movies'].aggregate([
72+
client = pymongo.MongoClient("<connection-string>")
73+
result = client["sample_mflix"]["movies"].aggregate([
7474
{
7575
"$search": {
76+
"index": "pymongoindex",
7677
"phrase": {
7778
"path": "title",
7879
"query": "new york"

0 commit comments

Comments
 (0)