title: Best way to create a text index on a MongoDB collection via C# driver
body: <p>Using v1.9.0 of the C# driver (latest at time of writing) with MongoDB 2.6.0</p>
  
  <p>What is the best way currently to create a <strong>text index</strong> on a collection, via the C# driver?</p>
  
  <p>From what I could tell, it's not possible via <code>MongoCollection.CreateIndex</code>? So currently creating it using MongoDatabase.Eval like so:</p>
  
  <p><code>Database.Eval(new EvalArgs { Code = "function(){db.dummycollection.ensureIndex({\"$**\" : \"text\"},{name:\"TextIndex\"});}"</code></p>
  
  <p>Am I missing something / is there a better way?</p>