标签:scroll last summary dex name employee timeout routing var
/// <summary> /// PUT /employee/employee/9e5e50da-7740-488e-bee2-b24951435691?routing=test_routing /// </summary> public void Routing() { client.Index<employee>(new employee{first_name = "chen",last_name = "rout"},x=>x.Routing("test_routing")); } public void SearchRouting() { client.Search<employee>(s=>s.Query(m=>m.MatchAll()).Routing("test_routing").Pretty()); } public void TimeOut() { client.Search<employee>(s=>s.Query(q=>q.Match(m=>m.Field("last_name").Query("rout"))).Timeout("1ms")); } public void Scroll() { var scrollid = client.Search<employee>(s=>s.MatchAll().Scroll("1m").Size(1)).ScrollId; client.Scroll<employee>("1m",scrollid); }
标签:scroll last summary dex name employee timeout routing var
原文地址:https://www.cnblogs.com/chenyishi/p/11567304.html