Ignore:
Timestamp:
2019-11-12T20:51:48+13:00 (4 years ago)
Author:
ak19
Message:
  1. As suggested by Dr Bainbridge, made the code changes to use Morphia as ODM for MongoDB (Object Document Mapper, ODM for MongoDB is equivalent to what ORM is to RDBMS). 2. Adding jar files to get this to work. 3. Further changes to store site folder names of form ##### as primary key of Websites collection. However, may in a future commit decide to store a reference to a WebsiteInfo object (representing a JSON document in a Websites MongoDB collection) inside a WebpageInfo object. 4. The MongoDB collections are now called Websites and Webpages, not websites and webpages. 5. geolocation of site now stored as field in Websites mongodb collection. And containsMRI now stored as field in Webpages collection of mongoDB. 6. Tried out some mongodb query commands based on what Dr Bainbridge did yesterday.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/maori-lang-detection/src/org/greenstone/atea/MongoDBAccess.java

    r33652 r33653  
    165165    }
    166166   
    167    
     167    /*
    168168    public void insertWebsiteInfo(WebsiteInfo website)
    169169    {
     
    188188               + " inserted successfully into " + WEBSITES_COLLECTION); 
    189189    }
    190 
    191     /* TODO:
    192     https://stackoverflow.com/questions/39433775/mongodb-java-inserting-throws-org-bson-codecs-configuration-codecconfigurationex
    193190    */
     191
    194192    /**
    195193     * Inserts a web page into the mongodb. Besides page related metadata and full body text
    196194     * the language information per sentence and per 2 adjacent sentences also get stored
    197195     * into the mongodb.
    198      */   
     196     */
     197    /*
    199198    public void insertWebpageInfo(WebpageInfo webpage)
    200199    {
     
    255254    logger.debug("\nwebpage info for " + webpage.webpageID + " inserted successfully into " + WEBPAGES_COLLECTION); 
    256255    }
     256    */
    257257
    258258    /** https://stackoverflow.com/questions/19938153/do-i-need-to-explicitly-close-connection */
Note: See TracChangeset for help on using the changeset viewer.