上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 46 下一页
摘要: /// <summary> /// POST /_analyze?pretty=true /// POST /employee/_analyze /// </summary> public void Analyze() { client.Analyze(x => x.Analyzer("standard").Text("Text to analyze").Pretty()); client.Ana 阅读全文
posted @ 2019-09-19 19:07 chester·chen 阅读(433) 评论(0) 推荐(0)
摘要: /// /// POST /_all/employee/_search?typed_keys=true /// public void AllIndex() { client.Search(s => s.AllIndices().Query(q => q.Match(m => m.Field... 阅读全文
posted @ 2019-09-19 12:15 chester·chen 阅读(561) 评论(0) 推荐(0)
摘要: /// /// HEAD /employee/employee/1 /// public void DocumentExists() { var response = client.DocumentExists("1一狮"); Console.WriteLine(J... 阅读全文
posted @ 2019-09-18 17:40 chester·chen 阅读(1388) 评论(0) 推荐(0)
摘要: /// /// 创建Idx,并设置分片和副本 /// public void Settings() { var response = client.CreateIndex("test01", e => e.Settings(s => s.NumberOfReplicas(3).Settin... 阅读全文
posted @ 2019-09-18 15:50 chester·chen 阅读(275) 评论(0) 推荐(0)
摘要: /// /// GET /megacorp/employee/_search /// /// public ISearchResponse QueryDoc() { var response = client.Search(); Console.W... 阅读全文
posted @ 2019-09-18 14:47 chester·chen 阅读(1020) 评论(0) 推荐(0)
摘要: 想要在NEST里根据id查询 可使用Get方法 fidler 阅读全文
posted @ 2019-09-18 11:01 chester·chen 阅读(537) 评论(0) 推荐(0)
摘要: 1.默认以Id属性为Id,无Id属性则自动生成 2.可通过属性标签指定Id 3.初始化client时指定 4.索引时指定 阅读全文
posted @ 2019-09-18 10:01 chester·chen 阅读(573) 评论(0) 推荐(0)
摘要: linux下开机自启: 在/etc/init.d目录下新建文件elasticsearch 并敲入shell脚本: 注意, 前两行必须填写,且要注释掉。 第一行为shell前行代码,目的告诉系统使用shell。 第二行分别代表运行级别、启动优先权、关闭优先权,且后面添加开机服务会用到。 shell脚本 阅读全文
posted @ 2019-09-17 10:18 chester·chen 阅读(1418) 评论(0) 推荐(0)
摘要: 返回结果可以用于缓存的最长时间,单位是秒。在Firefox中,上限是24小时 (即86400秒),而在Chromium 中则是10分钟(即600秒)。Chromium 同时规定了一个默认值 5 秒。如果值为 -1,则表示禁用缓存,每一次请求都需要提供预检请求,即用OPTIONS请求进行检测(即pre 阅读全文
posted @ 2019-08-11 19:38 chester·chen 阅读(1931) 评论(0) 推荐(0)
摘要: 系列章节 GRPC与.net core GRPC截止时间与元数据 GRPC与netcore Identity GRPC与netcore IdentityServer4 概述 GRPC的数据交互模式有: 1.单项RPC,最简单的数据交换方式,客户端发出单个请求,收到单个响应 2.服务端流式RPC,是在 阅读全文
posted @ 2019-07-06 17:16 chester·chen 阅读(2191) 评论(2) 推荐(1)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 46 下一页