title: How to use ensureIndex in MongoDB Java Driver?
body: <p>I am working with Mongo 2.6.0. How do I use the ensureIndex functionality on a collection? Currently it shows me as deprecated. </p>
  
  <p>Any help would be appreciated.</p>