Index: trunk/tools/editor_trends/etl/store.py |
— | — | @@ -100,6 +100,8 @@ |
101 | 101 | collection = mongo[rts.articles_raw] |
102 | 102 | db.add_index_to_collection(rts.dbname, rts.articles_raw, 'id') |
103 | 103 | db.add_index_to_collection(rts.dbname, rts.articles_raw, 'title') |
| 104 | + db.add_index_to_collection(rts.dbname, rts.articles_raw, 'ns') |
| 105 | + db.add_index_to_collection(rts.dbname, rts.articles_raw, 'category') |
104 | 106 | |
105 | 107 | location = os.path.join(rts.input_location, rts.language.code, rts.project.name, 'txt') |
106 | 108 | fh = file_utils.create_txt_filehandle(location, 'titles.csv', 'r', rts.encoding) |