Changeset 33800 for other-projects/maori-lang-detection/src/org/greenstone/atea/NutchTextDumpToMongoDB.java
- Timestamp:
- 2019-12-12T18:04:10+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/maori-lang-detection/src/org/greenstone/atea/NutchTextDumpToMongoDB.java
r33698 r33800 291 291 File geoLiteCityDatFile = new File(this.getClass().getClassLoader().getResource("GeoLiteCity.dat").getFile()); 292 292 try { 293 if(this.domainOfSite.equals("UNKNOWN")) { 293 if(this.domainOfSite.equals("UNKNOWN")) { // for sites that had 0 webpages downloaded, we have no domain 294 294 this.geoLocationCountryCode = "UNKNOWN"; 295 295 } else { … … 298 298 } catch(Exception e) { 299 299 logger.error("*** For SiteID " + siteID + ", got exception: " + e.getMessage(), e); 300 this.geoLocationCountryCode = null;300 this.geoLocationCountryCode = "UNKNOWN"; // couldn't get the country code, so should also be UNKNOWN not null 301 301 } 302 302
Note:
See TracChangeset
for help on using the changeset viewer.