mongo.txt 572 B

12345678910111213141516
  1. use backend1
  2. db.createUser({ user: "backend1", pwd: "backend1", roles: [ "readWrite", "dbAdmin", { role: "dbOwner", db: "backend1" } ]})
  3. db.runCommand({compact: "attachments.files"})
  4. db.runCommand({compact: "attachments.chunks"})
  5. use admin
  6. query with Collation {locale: "en", strength : 2}
  7. {$or: [{$text : {$search : "blue"}} , { manufacturer: "swr"}, {model: "OM"}]}
  8. https://127.0.0.1:9443/api/v1/schematics?query={"$fulltext":"\"blue \" \"Mesa\""}&offset=0&limit=10
  9. schematic access
  10. {"name": "w.klaas@gmx.de", "password":"akteon0000", "admin": true}