code: def create_indexes(cls, target=None, recreate=False):
  		
  		
  		# TODO: Nested indexes.
  		
  		results = []
  		collection = cls.get_collection(target)
  		
  		if recreate:
  			collection.drop_indexes()
  		
  		for index in cls.__indexes__.values():
  			results.append(index.create(collection))
  		
  		return results
docs: Iterate all known indexes and construct them.
  		
  		https://api.mongodb.com/python/current/api/pymongo/collection.html#pymongo.collection.Collection.create_indexes