Changeset 33646

Show
Ignore:
Timestamp:
11.11.2019 18:46:24 (4 weeks ago)
Author:
ak19
Message:

Saving the mongodb queries and learning links that Dr Bainbridge found today for me to read.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/maori-lang-detection/MoreReading/mongodb.txt

    r33644 r33646  
    285285> db.createCollection('webpages'); 
    286286{ "ok" : 1 } 
    287 > db.webpages.drop(0; 
     287> db.webpages.drop(); 
    288288... ^C 
    289289 
     
    309309 
    310310 
     311 
     312----------------------- 
     313 
     314MONGODB QUERIES: 
     315 
     316db.getCollection('webpages').find({"isMRI": true, "singleSentences.langCode": "mri"}) 
     317db.getCollection('webpages').find({"singleSentences": { $elemMatch: {"langCode":"mri"} } }, {"singleSentences.$": "mri"}) 
     318 
     319 
     320 
     321 
     322READING 
     323 
     324mongodb java convert class 
     325https://www.quora.com/What-are-the-ways-of-converting-a-Java-object-to-a-MongoDB-document-and-vice-versa 
     326https://stackoverflow.com/questions/39320825/pojo-to-org-bson-document-and-vice-versa 
     327X https://mongodb.github.io/morphia/ 
     328https://stackoverflow.com/questions/10170506/inserting-java-object-to-mongodb-collection-using-java 
     329X https://www.google.com/search?q=morphia+example&oq=morphia+example&aqs=chrome.0.0l6.4223j0j9&sourceid=chrome&ie=UTF-8 
     330https://www.baeldung.com/mongodb-morphia 
     331X https://web.archive.org/web/20171117121335/http://mongodb.github.io/morphia/1.3/getting-started/ 
     332=> https://morphia.dev/1.4/getting-started/quick-tour/ 
     333https://github.com/MorphiaOrg/morphia/tree/master/docs/reference 
     334 
     335 
     336mongodb querying 
     337https://docs.mongodb.com/manual/tutorial/query-embedded-documents/ 
     338https://docs.mongodb.com/manual/tutorial/query-arrays/ 
     339https://www.google.com/search?q=mongodb+find+subdocument&oq=mongodb+find+&aqs=chrome.0.69i59j69i57j0l4.7607j1j8&sourceid=chrome&ie=UTF-8 
     340https://stackoverflow.com/questions/25586901/how-to-find-document-and-single-subdocument-matching-given-criterias-in-mongodb 
     341https://stackoverflow.com/questions/21113543/mongodb-get-subdocument 
     342https://stackoverflow.com/questions/36948856/find-subdocuments-in-mongo 
     343https://docs.mongodb.com/v3.0/reference/operator/projection/positional/#proj._S_ 
     344https://www.google.com/search?q=mongodb+query+tutorial&oq=mongodb+query+tutorial&aqs=chrome..69i57j0l2j69i60l3.4719j0j7&sourceid=chrome&ie=UTF-8 
     345https://blog.exploratory.io/an-introduction-to-mongodb-query-for-beginners-bd463319aa4c 
     346https://docs.mongodb.com/manual/reference/method/db.collection.find/ 
     347https://docs.mongodb.com/manual/reference/method/db.collection.find/#find-projection