public void createIndex ( final DBObject keys , final DBObject options ) { try { executor . execute ( createIndexOperation ( keys , options ) , getReadConcern ( ) ) ; } catch ( MongoWriteConcernException e ) { throw createWriteConcernException ( e ) ; } }
Creates an index on the field specified if that index does not already exist .