上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 42 下一页
摘要: 原文https://www.cnblogs.com/calvinK/p/9263696.html centos7下安装lldb,dotnet netcore 进程生成转储文件,并使用lldb进行分析 随着netcore应用在linux上部署的应用越来越多,碰到cpu 100%,内存暴涨的情况也一直偶 阅读全文
posted @ 2019-10-22 11:00 chester·chen 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 原文https://juejin.im/post/5b5985b1f265da0f875938d2 Linux OpenVPN 客户端连接配置 最近北京机房的机器需要连接上海机房的服务器,上海机房用的 VPN 服务是 OpenVPN。又听说 OpenVPN 客户端可以在 Linux 服务器上运行,所 阅读全文
posted @ 2019-10-11 10:25 chester·chen 阅读(10) 评论(0) 推荐(0) 编辑
摘要: public void Refresh() { client.Refresh("employee"); } public void Flush() { client.Flush("employee"); } /// <summary> /// _optimize=ForceMerge /// </summary> public void ForceMerge() { client.ForceMer 阅读全文
posted @ 2019-09-26 11:40 chester·chen 阅读(228) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// Dynamic = false无法搜索 /// </summary> public void Dynamicmapping() { var response = client.IndexExists("employee"); if (!response.Exists) { client.CreateIndex("employee"); } client.Map< 阅读全文
posted @ 2019-09-24 16:23 chester·chen 阅读(319) 评论(0) 推荐(0) 编辑
摘要: public void SetAnalysis() { if (!client.IndexExists("employee").Exists) { client.CreateIndex("employee", i => i.Settings( ... 阅读全文
posted @ 2019-09-24 11:11 chester·chen 阅读(370) 评论(0) 推荐(0) 编辑
摘要: /// <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_n 阅读全文
posted @ 2019-09-22 14:04 chester·chen 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch 的相似度算法 被定义为检索词频率/反向文档频率, TF/IDF ,包括以下内容: 检索词频率 检索词在该字段出现的频率?出现频率越高,相关性也越高。 字段中出现过 5 次要比只出现过 1 次的相关性高。反向文档频率 每个检索词在索引中出现的频率?频率越高,相关性越低。检索 阅读全文
posted @ 2019-09-21 10:22 chester·chen 阅读(225) 评论(0) 推荐(0) 编辑
摘要: text字符串sort会先分词。可先建立filed字段。并设置为keyword mapping sort 阅读全文
posted @ 2019-09-21 09:52 chester·chen 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 查询和过滤器上下文 查询子句的行为取决于它是在查询上下文中使用还是在过滤器上下文中使用: 查询上下文 查询上下文中使用的查询子句回答了“这个文档与这个查询子句的匹配程度如何?”,除了决定文档是否匹配之外,查询子句还计算一个表示文档匹配程度的_score,相对于其他文档。 当查询子句被传递给query 阅读全文
posted @ 2019-09-20 11:14 chester·chen 阅读(2022) 评论(0) 推荐(0) 编辑
摘要: /// <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 阅读(423) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 42 下一页