title: How to make a case-insensitive query in java?
body: <p>I know make case-insensitive query in console could use regex like <code>db.stuff.find( { foo: /bar/i } );</code></p>
  
  <p><a href="https://stackoverflow.com/questions/1863399/mongodb-is-it-possible-to-make-a-case-insensitive-query">MongoDB: Is it possible to make a case-insensitive query?</a></p>
  
  <p>But I cannot fiure out how to use it in java drive.example:</p>
  
  <pre><code>DBObject q = BasicDBObjectBuilder.start().add(type, s).add("user", user).get();
  DBCursor cursor = c.find(q);
  </code></pre>
  
  <p>I want <code>user</code> case-insensitive,How to do that?</p>