title: Mongodb Indexing array field in the documents
body: <p>I am newbie, trying to index a contents collections. My query looks like</p>
  
  <pre><code>db.contents.find({title:{$regex: /arnab/i}, tags:{$regex: /Times/i}})
  </code></pre>
  
  <p>below is my index query</p>
  
  <pre><code>db.contents.createIndex({title: 1, tags:1})
  </code></pre>
  
  <p>tags is any array. Will this query work. Is there any better way to index title, and array tags.</p>
  
  <p>Thanks in advance</p>