public void TestTextQuery()
{
string textType = "text";
var typeSetting = new TypeSetting(textType);
typeSetting.AddStringField("message").Analyzer="whitespace";
client.PutMapping(index, typeSetting);
client.Refresh();
var dict = new Dictionary<string, object>();
dict["message"] = "the quick brown fox jumped over thelazy dog";
var op= client.Index(index, textType, "text_k1", dict);
Assert.True(op.Success);
client.Refresh();
var textQuery = new TextQuery("message", "fox");
var result= client.Search(index, textType, textQuery);
Assert.AreEqual(1,result.GetTotalCount());
}