Skip to content

Commit 6b063f7

Browse files
jdbocarslyml-evs
andauthored
add text index creation script (#58)
* add text index creation script Co-authored-by: Matthew Evans <[email protected]>
1 parent 3e14384 commit 6b063f7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pymongo import MongoClient
2+
3+
from pydatalab.config import CONFIG
4+
5+
client = MongoClient(CONFIG.MONGO_URI)
6+
7+
db = client.datalabvue
8+
9+
response = db.items.create_index([("$**", "text")])

0 commit comments

Comments
 (0)