-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcreateIndexCommands.txt
27 lines (26 loc) · 1.24 KB
/
createIndexCommands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# list of commands to craete all Basesnippet indices
# be executed in mongo shell after selecting proper database
db.Basesnippet.createIndex( {"snippetType" : 1} )
db.Basesnippet.createIndex( {"defaultOrder" : 1} )
db.Basesnippet.createIndex( {"expiresAt" : 1} )
db.Basesnippet.createIndex( {"updatedAt" : 1} )
db.Basesnippet.createIndex( {"updatedBy" : 1} )
db.Basesnippet.createIndex( {"createdAt" : 1} )
db.Basesnippet.createIndex( {"createdBy" : 1} )
db.Basesnippet.createIndex( {"createACL" : 1} )
db.Basesnippet.createIndex( {"readACL" : 1} )
db.Basesnippet.createIndex( {"updateACL" : 1} )
db.Basesnippet.createIndex( {"shareACL" : 1} )
db.Basesnippet.createIndex( {"deleteACL" : 1} )
db.Basesnippet.createIndex( {"adminACL" : 1} )
db.Basesnippet.createIndex( {"dashboardName" : 1} )
db.Basesnippet.createIndex( {"parentId":1} )
db.Basesnippet.createIndex( {"deleted":1} )
db.Basesnippet.createIndex( {"location":1} )
db.Basesnippet.createIndex( {"versionable":1} )
db.Basesnippet.createIndex( {"name":1} )
db.Basesnippet.createIndex( {"tags":1} )
db.Basesnippet.createIndex( {"linkType":1} )
db.Basesnippet.createIndex( {"files":1} )
db.Basesnippet.createIndex( {"isMessage":1} )
db.Basesnippet.createIndex( {"textcontent":"text"},{ "name": "MyTextIndex"})