摘要: es的mapping设置很关键,mapping设置不到位可能导致索引重建。如何更好的设置mapping? 请看下面各个类型介绍^_^ core types core types 每一个JSON字段可以被映射到一个特定的核心类型。JSON本身已经为我们提供了一些输入,支持string, integer 阅读全文
posted @ 2017-08-24 17:35 a-du 阅读(207) 评论(0) 推荐(0) 编辑
摘要: question: How can I do multiple nested aggregation? I have tried something like this: But it returns Facets2 as a child of Facets Can anyone help? Ans 阅读全文
posted @ 2017-08-23 11:51 a-du 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 来自:http://www.searchtech.pro/articles/2013/02/18/1361194291548.html elasticsearch的config文件夹里面有两个配置文 件:elasticsearch.yml和logging.yml,第一个是es的基本配置文件,第二个是 阅读全文
posted @ 2017-08-21 10:54 a-du 阅读(131) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-08-18 16:59 a-du 阅读(40) 评论(0) 推荐(0) 编辑
摘要: rpm包的安装: 1.安装一个包 # rpm -ivh 2.升级一个包 # rpm -Uvh 3.移走一个包 # rpm -e 4.安装参数 --force 即使覆盖属于其它包的文件也强迫安装 --nodeps 如果该RPM包的安装依赖其它包,即使其它包没装,也强迫安装。 5.查询一个包是否被安装 阅读全文
posted @ 2017-08-10 10:40 a-du 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: Writing analyzers There are times when you would like to analyze text in a bespoke fashion, either by configuring how one of Elasticsearch’s built-in  阅读全文
posted @ 2017-08-03 11:36 a-du 阅读(238) 评论(0) 推荐(0) 编辑
摘要: IEnumerable类型原生是没有Add方法的,你可以用Contact方法去为它添加元素, 1 items = items.Concat(new[] { "foo" }); 1 items = items.Concat(new[] { "foo" }); 1 items = items.Conca 阅读全文
posted @ 2017-08-03 11:22 a-du 阅读(451) 评论(0) 推荐(0) 编辑
摘要: The html_strip character filter strips HTML elements from the text and replaces HTML entities with their decoded value (e.g. replacing & with &). 阅读全文
posted @ 2017-08-03 10:22 a-du 阅读(460) 评论(0) 推荐(0) 编辑
摘要: Creating a custom analyzer in ElasticSearch Nest client Question: Im very very new to elasticsearch using the nest client, I am creating an index with 阅读全文
posted @ 2017-08-03 10:00 a-du 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 来源:https://github.com/medcl/elasticsearch-analysis-pinyin Pinyin Analysis for Elasticsearch This Pinyin Analysis plugin is used to do conversion betwe 阅读全文
posted @ 2017-08-01 15:00 a-du 阅读(982) 评论(0) 推荐(0) 编辑