摘要: sudo gedit /etc/sysctl.conf在该文件任意地方加入:vm.max_map_count=655360sudo sysctl -p重启ES 阅读全文
posted @ 2017-10-17 17:13 _chenyl 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 一 子条件查询:特定字段查询所指特定值。分为:Query context和Filter context 1 Query context 概念:在查询中,除了判断文档是否满足查询条件外,ES还会计算一个_score来标识匹配的程度,旨在判断目标文档和... 阅读全文
posted @ 2017-10-17 15:57 _chenyl 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 简单查询、条件查询、聚合查询 (1)创建book索引 代码: { "settings":{ "number_of_shards":3, "number_of_replicas":1 }, "mappings":{ "novel":{ ... 阅读全文
posted @ 2017-10-17 00:16 _chenyl 阅读(75) 评论(0) 推荐(0) 编辑