public void createIndex ( DBObject keys , DBObject options ) throws MongoException { dbCollection . createIndex ( keys , options ) ; }
Forces creation of an index on a set of fields if one does not already exist .