- Timestamp:
- 2020-02-12T21:27:02+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/maori-lang-detection/src/org/greenstone/atea/MongoDBQueryer.java
r33912 r33913 359 359 // https://stackoverflow.com/questions/28790784/java-8-preferred-way-to-count-iterations-of-a-lambda 360 360 Holder<Integer> docNum = new Holder<>(1); 361 361 362 /* 362 363 Bson orQuery = or( 363 364 BasicDBObject.parse("{geoLocationCountryCode: \"AU\"}"), … … 365 366 // e.g. "{urlContainsLangCodeInPath: false}" 366 367 ); 368 */ 367 369 Bson andQuery = and( 368 BasicDBObject.parse("{geoLocationCountryCode: {$ne: \"NZ\"}}"),369 BasicDBObject.parse("{domain: {$not: /\\.nz$/}}"),370 BasicDBObject.parse(mriFilterString),371 370 BasicDBObject.parse(mriFilterString), 371 BasicDBObject.parse("{geoLocationCountryCode: {$ne: \"NZ\"}}"), 372 BasicDBObject.parse("{domain: {$not: /\\.nz$/}}"), 373 BasicDBObject.parse("{urlContainsLangCodeInPath: "+ isMiInURLPath +"}"));//orQuery); 372 374 373 375 collection.aggregate(Arrays.asList( … … 652 654 orQuery = or( 653 655 BasicDBObject.parse("{geoLocationCountryCode: /(NZ|AU)/}"), 656 //BasicDBObject.parse("{geoLocationCountryCode: \"NZ\"}"), 654 657 BasicDBObject.parse("{domain: /\\.nz$/}"), 655 658 BasicDBObject.parse("{urlContainsLangCodeInPath: false}")
Note:
See TracChangeset
for help on using the changeset viewer.