https://www.elastic.co/guide/en/elasticsearch/reference/2.3/query-dsl.html Query DSL 查询的种类 Elasticsearch提供基于JSON定义的查询语句。包含两种类型: Leaf query Cluase 暂且叫做 ...
分类:
其他好文 时间:
2016-11-25 20:43:58
阅读次数:
253
最近工作需要,开始研究ES,当前ES的最新版本为5.0.1,从之前的2.x的版本号一下升级到5.x,主要是之前Elastic的产品版本号因为收购等原因很乱,ES 2.X版本的和Kibana 4.x版本的配套使用,让人感觉不爽。这下一步到位,所有的产品系列版本号都从5.0开始,这样,5.0的ES就和5 ...
分类:
其他好文 时间:
2016-11-25 00:50:11
阅读次数:
258
亿级规模的Elasticsearch优化实战 Elasticsearch 的基本信息大致如图所示,这里就不具体介绍了。 本次分享主要包含两个方面的实战经验:索引性能和查询性能。 一. 索引性能(Index Performance) 首先要考虑的是,索引性能是否有必要做优化? 索引速度提高与否?主要是 ...
分类:
其他好文 时间:
2016-11-24 18:15:09
阅读次数:
206
一、概念 1.1 官方文档 以下总结自ElasticSearch的官方文档以及自己的一些实践,有兴趣的可以直接阅读官方文档: https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html 1.2 简介 ElasticSe ...
分类:
其他好文 时间:
2016-11-24 08:30:37
阅读次数:
306
在/etc/syscurity/limits.conf 加入以下两行: elastic hard nofile 65536 elastic soft nofile 65536 #备注:elastic这里是指定用户elastic 当然可以用*表示所有人 ...
分类:
其他好文 时间:
2016-11-23 12:26:50
阅读次数:
820
1.下载https://www.elastic.co/guide/en/elasticsearch/reference tar.gz包 2.tar zxvf elasticsearch.tar.gz 3. 运行./bin/elasticsearch -d。按守护进程启动 4.curl -XGET ' ...
分类:
其他好文 时间:
2016-11-22 22:56:04
阅读次数:
184
ElasticSearch安装 官网:https://www.elastic.co 1.ElasticSearch安装 1.1.下载安装公共密钥 1.2.在 /etc/yum.repos.d/ 目录下建立 elasticsearch.repo 文件 在文件中写入: 保存退出 1.3.使用yum安装 ...
分类:
其他好文 时间:
2016-11-21 14:58:38
阅读次数:
382
选择需求分类废话少说直接上图 第一张图: 2.此图搭配的日志格式是: log_format main '$remote_addr - $remote_user [$time_local] $http_host $request_method "$uri" "$query_string" ' '$st ...
分类:
其他好文 时间:
2016-11-20 23:08:04
阅读次数:
488
打开 ~/es_root/config/elasticsearch.yml 文件,加入以下配置: 以上配置定义了 ik_syno 和 ik_syno_smart 这两个新的 analyzer,分别对应 IK 的 ik_max_word 和 ik_smart 两种分词策略。根据 IK 的文档,二者区别 ...
分类:
其他好文 时间:
2016-11-19 20:54:53
阅读次数:
289
PlainElastic.Net PlainElastic.Net The really plain Elastic Search .Net client. Idea Installation How its works Concepts Command building Indexing Bulk ...
分类:
Web程序 时间:
2016-11-18 22:01:03
阅读次数:
648