NEST routing timeout scroll

        /// 
        /// PUT /employee/employee/9e5e50da-7740-488e-bee2-b24951435691?routing=test_routing 
        /// 
        public void Routing()
        {
            client.Index(new employee{first_name = "chen",last_name = "rout"},x=>x.Routing("test_routing"));
        }

        public void SearchRouting()
        {
            client.Search(s=>s.Query(m=>m.MatchAll()).Routing("test_routing").Pretty());
        }

        public void TimeOut()
        {
            client.Search(s=>s.Query(q=>q.Match(m=>m.Field("last_name").Query("rout"))).Timeout("1ms"));
        }

        public void Scroll()
        {
            var scrollid = client.Search(s=>s.MatchAll().Scroll("1m").Size(1)).ScrollId;
            client.Scroll("1m",scrollid);
        }

  

你可能感兴趣的:(NEST routing timeout scroll)