Changeset 33813 for other-projects/maori-lang-detection/mongodb-data/counts_sitesWithPagesInMRI.json
- Timestamp:
- 2019-12-18T21:38:44+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/maori-lang-detection/mongodb-data/counts_sitesWithPagesInMRI.json
r33805 r33813 1 /* 2 Number of websites that have 1 or more pages detected as being in Maori, a positive numPagesInMRI. 3 4 db.getCollection('Websites').find({numPagesInMRI: { $gt: 0}}).count() 5 = 361 6 7 Count of country codes for sites that have at least one page detected as MRI: 8 9 db.Websites.aggregate([ 10 { 11 $match: { 12 numPagesInMRI: {$gt: 0} 13 } 14 }, 15 { $unwind: "$geoLocationCountryCode" }, 16 { 17 $group: { 18 _id: {$toLower: '$geoLocationCountryCode'}, 19 count: { $sum: 1 } 20 } 21 }, 22 { $sort : { count : -1} } 23 ]); 24 */ 25 1 26 /* 1 */ 2 27 { 3 28 "_id" : "us", 4 "count" : 20 7.029 "count" : 206.0 5 30 } 6 31 … … 49 74 /* 9 */ 50 75 { 51 "_id" : " ca",52 "count" : 4.076 "_id" : "gb", 77 "count" : 3.0 53 78 } 54 79 55 80 /* 10 */ 56 81 { 57 "_id" : " gb",82 "_id" : "ca", 58 83 "count" : 3.0 59 84 } … … 61 86 /* 11 */ 62 87 { 63 "_id" : " ie",88 "_id" : "ua", 64 89 "count" : 2.0 65 90 } … … 67 92 /* 12 */ 68 93 { 69 "_id" : " ua",94 "_id" : "ie", 70 95 "count" : 2.0 71 96 } … … 80 105 { 81 106 "_id" : "sg", 107 "count" : 2.0 108 } 109 110 /* 15 */ 111 { 112 "_id" : "unknown", 113 "count" : 2.0 114 } 115 116 /* 16 */ 117 { 118 "_id" : "gr", 82 119 "count" : 1.0 83 120 } 84 121 85 /* 15 */ 122 /* 17 */ 123 { 124 "_id" : "hk", 125 "count" : 1.0 126 } 127 128 /* 18 */ 129 { 130 "_id" : "jp", 131 "count" : 1.0 132 } 133 134 /* 19 */ 135 { 136 "_id" : "bg", 137 "count" : 1.0 138 } 139 140 /* 20 */ 86 141 { 87 142 "_id" : "mx", … … 89 144 } 90 145 91 /* 16*/146 /* 21 */ 92 147 { 93 "_id" : " hk",148 "_id" : "ro", 94 149 "count" : 1.0 95 150 } 96 97 /* 17 */98 {99 "_id" : "jp",100 "count" : 1.0101 }102 103 /* 18 */104 {105 "_id" : "se",106 "count" : 1.0107 }108 109 /* 19 */110 {111 "_id" : "gr",112 "count" : 1.0113 }114 115 /* 20 */116 {117 "_id" : "unknown",118 "count" : 1.0119 }120 121 /* 21 */122 {123 "_id" : "bg",124 "count" : 1.0125 }
Note:
See TracChangeset
for help on using the changeset viewer.