
es
数据的星辰大海
简单地做自己,踏实的做事情
展开
-
Windows安装ES的head
一、下载 elasticsearch-head-master.zip地址:https://github.com/mobz/elasticsearch-head二、下载依赖cdm进入命令行cd D:\softwares\elasticsearch-head-master下载依赖cnpm install启动headnpm run start浏览器访问head的地址...原创 2021-05-25 10:48:32 · 411 阅读 · 0 评论 -
ES创建仓库与恢复快照
在这里插入图片描述一、停止ES集群1)禁止分片自动分布 curl -H "Content-Type: application/json" -XPUT 'http://192.168.68.128:9202/_cluster/settings' -d '{"transient":{"cluster.routing.allocation.enable": "none"}}'2)执行同步刷新curl -H "Content-Type: application/json" -XPOST 'http:/原创 2020-10-30 10:03:35 · 2099 阅读 · 0 评论 -
ES的操作命令
ES的操作命令ES启动命令(后台)./bin/elasticsearch -dES复制索引到另一个索引post _reindex{ "source": { "index": "kg.controller" }, "dest": { "index": "kg.controllerback", "op_type": "create" }}查询快照仓库和快照curl -XGET 'http://192.168.68.128:9201/_snapshot原创 2020-10-30 09:44:38 · 3711 阅读 · 0 评论 -
ES别名操作
添加索引别名 curl -XPOST 'http://localhost:9200/_aliases' -d ' { "actions": [ {"add": {"index": "test1", "alias": "alias1"}} ] }'删除索引别名 curl -XPOST 'http://localhost:9200/_aliases' -d ' { "actions": [原创 2020-06-30 14:07:22 · 4479 阅读 · 0 评论 -
es-的水平扩容和容错性
原创 2020-02-14 20:46:28 · 220 阅读 · 0 评论 -
es-分布式架构
原创 2020-02-14 20:23:12 · 181 阅读 · 0 评论 -
es-使用bool查询
原创 2020-02-14 19:46:22 · 1276 阅读 · 1 评论 -
es-聚合查询
原创 2020-02-14 19:45:50 · 213 阅读 · 0 评论 -
es-filter查询
原创 2020-02-08 00:00:19 · 462 阅读 · 0 评论 -
es-基本中文查询
原创 2020-02-07 23:52:09 · 1629 阅读 · 0 评论 -
es-英文基本查询
原创 2020-02-07 23:41:34 · 497 阅读 · 0 评论 -
es-mapping
能查看文档字段的类型手动创建mapping原创 2020-02-07 23:09:30 · 159 阅读 · 0 评论 -
es-版本控制
原创 2020-02-07 22:37:41 · 297 阅读 · 0 评论 -
Elasticsearch用Bulk API实现批量操作
批量插入POST /lib2/books/_bulk{"index":{"_id":1}}{"title":"Java","price":55}{"index":{"_id":2}}{"title":"Python","price":55}{"index":{"_id":3}}{"title":"Scala","price":90}{"index":{"_id":4}}{"t...原创 2020-02-07 22:36:54 · 476 阅读 · 0 评论 -
Elasticsearch用Multiget批量获取文档
批量获取文档GET /_mget{ "docs":[ { "_index":"lib", "_type":"user", "_id":"1" }, { "_index":"lib", "_type":"user", "_id":"3" }, { "_index":"lib", "_typ...原创 2020-02-07 22:16:38 · 373 阅读 · 0 评论 -
Elasticsearch的增删改查
1、插入索引 libPUT /lib/{ "settings":{ "number_of_shards":3, "number_of_replicas":0 } }2、获取索引lib的配置信息GET /lib/_settings3、插入类型user下标为1到索引lib中PUT /lib/user/1{ "name":"liushujie", ...原创 2020-02-06 23:32:42 · 156 阅读 · 0 评论