随笔分类 -  ElasticSearch

摘要:Search API Search API URI Search URI Search Response Body Search Response Body Search Query DSL Query DSL Response Body Search使用Query DSL语句,相对URI Sear 阅读全文
posted @ 2019-02-23 23:18 wwcom123 阅读(829) 评论(0) 推荐(0) 编辑
摘要:Mapping Mapping 类似数据库中的表结构定义,主要作用如下: 查看一个Index的Mapping的API 查看一个Index的Mapping的API 例如查看index为test_index的mapping,使用_mapping,查询结果中: doc是这个index的type,忽略,ES 阅读全文
posted @ 2019-02-22 23:03 wwcom123 阅读(452) 评论(0) 推荐(0) 编辑
摘要:因为从ElasticSearch6.X开始,官方准备废弃Type了。对应数据库,对ElasticSearch的理解如下: 索引Index 由具有相同结构(字段Field)的文档Document组成。每个索引都有自己的mapping定义,用于定义字段名和类型。 文档Document 用户存储在es中的 阅读全文
posted @ 2019-02-21 00:54 wwcom123 阅读(4929) 评论(0) 推荐(0) 编辑
摘要:ElasticSearch5的elasticsearch.yml配置 注意 elasticsearch.yml中的配置,冒号和后面配置值之间有空格 cluster.name: my-application 指定集群的名称,同一个集群的节点务必设置同一名称 node.name: node-1 指定节点 阅读全文
posted @ 2018-05-05 23:49 wwcom123 阅读(316) 评论(0) 推荐(0) 编辑
摘要:概述 elasticsearch-head,之前插件plugin方式已废弃,现已改为nodejs的NPM安装,独立WEB服务方式。 elasticsearch-head网址:https://github.com/mobz/elasticsearch-head 步骤 1.安装nodejs 下载node 阅读全文
posted @ 2018-05-05 20:35 wwcom123 阅读(273) 评论(0) 推荐(0) 编辑