public void TestTextAll() { var key = IndexKeys.TextAll(); string expected = "{ \"$**\" : \"text\" }"; Assert.AreEqual(expected, key.ToJson()); }
public MongoIndexKeysWarpper TextAll() { if (MongoIndexKeys == null) { MongoIndexKeys = IndexKeys.TextAll(); } else { MongoIndexKeys = MongoIndexKeys.TextAll(); } return(this); }
public void EnsureIndexExists() { collection.CreateIndex(IndexKeys.TextAll(), IndexOptions.SetName("Searchable").SetBackground(true)); }