- 博客(17)
- 收藏
- 关注
原创 JAVA 获取Elasticsearch客户端
JAVA 获取Elasticsearch客户端SettingClient案例展示Setting设置client.transport.sniff为true来使客户端去嗅探整个集群的状态,把集群中其它机器的ip地址加到客户端中// 获取Setting方法Settings settings = Settings.builder() .put("client.transport.sniff"...
2020-04-08 15:50:38
421
原创 Elasticsearch 的query查询和filter查询
Elasticsearch 的query查询和filter查询的区别引入关于query和filter的区别query查询filter查询总结引入最近随着项目中在elasticsearch的数据越来越多以及查询条件的增多,需要对elasticsearch的优化关于query和filter的区别从查询上开始优化,这就要区别query和filter的查询区别query的主要点是“此文档与此查询...
2018-11-14 17:13:53
710
原创 Elasticsearch的复合查询
Elasticsearch的复合查询 Compound queriesCompound queries wrap other compound or leaf queries, either to combine their results and scores, to change their behaviour, or to switch from query to filter cont...
2018-05-30 16:12:26
2219
8
原创 Mongodb概念解析
MongoDB 旨在为WEB应用提供可扩展的高性能数据存储解决方案。 MongoDB 将数据存储为一个文档,数据结构由键值(key=>value)对组成。MongoDB 文档类似于 JSON 对象。字段值可以包含其他文档,数组及文档数组。 初次接触任何一个数据库,都应该学习其中的基础概念,在mongodb中基本的概念是文档、集合、数据库, 一个mongodb中可以建立多个数据库。 Mongo
2017-04-25 13:13:26
372
原创 Windows下安装Mongodb
1.MongoDB下载 下载地址:https://www.mongodb.com/download-center#community 双击安装 自定义选择想要安装到的地方 创建数据目录 MongoDB 将数据存储在db目录下。但是这个数据目录不会主动创建,所以需要手动去创建它。 本地ip:127.0.0.1 端口:27017 打开浏览器 http://127.0.0.1:27017
2017-04-25 10:46:13
297
原创 elasticsearch5.1.2在windows下的安装包括head
elasticsearch5.1.2在windows下的安装我印象中安装head安装好长时间了,一直没装上,今天终于安装上了,不容易啊。
2017-03-01 14:08:51
820
原创 elasticsearch安装ik分词器
elasticsearch安装ik分词器 : 网址:https://github.com/medcl/elasticsearch-analysis-ik/releases 下载ik分词器 下载的elasticsearch是5.1.2 : 网址:https://github.com/medcl/elasticsearch-analysis-ik 版本对应关系显示 根据版
2017-02-28 16:12:51
618
原创 elasticsearch中的curl命令
windows(64位)中使用curl最近再学习elasticsearch,无论是在linux下还是在windows下都会使用到curl命令,windows下安装curl命令插件
2017-02-28 10:08:42
611
转载 elasticsearch
使用curl命令操作elasticsearch第一:_cat系列_cat系列提供了一系列查询elasticsearch集群状态的接口。你可以通过执行 curl -XGET localhost:9200/_cat 获取所有_cat系列的操作 =^.^= /_cat/allocation /_cat/shards /_cat/shards/{index} /_cat/master /_
2017-02-27 16:54:38
224
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人