NEST routing timeout scroll
Posted chenyishi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了NEST routing timeout scroll相关的知识,希望对你有一定的参考价值。
/// <summary> /// PUT /employee/employee/9e5e50da-7740-488e-bee2-b24951435691?routing=test_routing /// </summary> public void Routing() client.Index<employee>(new employeefirst_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);
以上是关于NEST routing timeout scroll的主要内容,如果未能解决你的问题,请参考以下文章
Ocelot API 网关仅设置 TimeOut 值抛出错误
HttpClient连接池抛出大量ConnectionPoolTimeoutException: Timeout waiting for connection异常排查