title: Spring Data MongoDB auto create indexes not working
body: <p>I am using Spring data Mongodb v1.6.2 and Spring 4.2.1. Today I noticed that @Indexed annotation on my entities did not trigger an index creation. </p>
  
  <p>The entity is annotated with org.springframework.data.mongodb.core.mapping.Document and theorg.springframework.data.mongodb.core.mapping.Document is used.</p>
  
  <pre><code>@Document
  public class Entity {
   @Indexed(unique= true)
   private String name;
  }
  </code></pre>