# -*- coding: utf-8 -*-
import gzip, json, pymongo

def main():
    con = pymongo.MongoClient('localhost', 27017)
    db = con.test
    col = db.artist
    col.create_index([("name", pymongo.ASCENDING)])
    col.create_index([("aliases.name", pymongo.ASCENDING)])
    col.create_index([("tags.value", pymongo.ASCENDING)])
    col.create_index([("rating.value", pymongo.ASCENDING)])

if __name__ == '__main__':
    main()
