title: CompoundIndex spring case insensitive
body: <p>So, I am working on indexes in MongoDB from Spring level. I want to use the case insensitive index. </p>
  
  <p><a href="https://docs.mongodb.com/v3.4/core/index-case-insensitive/" rel="nofollow noreferrer">https://docs.mongodb.com/v3.4/core/index-case-insensitive/</a></p>
  
  <p>From above mongo documentation I can see that from DB level it can be done by using the strength collation and should be used in createIndex function. But I was unable to find any information about how to use the options in the CompoundIndex annotation. </p>
  
  <p><a href="http://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb/core/index/CompoundIndex.html" rel="nofollow noreferrer">http://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb/core/index/CompoundIndex.html</a></p>
  
  <p>On Spring dosc there is no word about options. Anyone has a clue how to do it? </p>