elasticsearch中mapping的_source和store的笔记(转)
摘要:原文地址: https://www.cnblogs.com/zklidd/p/6149120.html 0、故事引入 无意中看到了ES的mapping中有store字段,作为一个ES菜鸡,有必要对这个字段进行下笔记。 1、_source _source字段我在们进行检索时相当重要, ES默认检索只会
阅读全文
posted @
2019-09-23 16:53
睡着的糖葫芦
阅读(756)
推荐(0) 编辑
python 使用 elasticsearch 常用方法(聚合)
摘要:#记录聚合查询方法 from elasticsearch import Elasticsearches = Elasticsearch(['xx.xx.xx.xx:9200'])#获取最小的年龄res = es.search(index='test6', body = { "query": { "m
阅读全文
posted @
2019-09-23 16:34
睡着的糖葫芦
阅读(3748)
推荐(0) 编辑
python 使用 elasticsearch 常用方法(检索)
摘要:#记录es查询等方法 #清楚数据 curl -XDELETE http://xx.xx.xx.xx:9200/test6 #初始化数据 curl -H "Content-Type: application/json" -XPUT 'http://xx.xx.xx.xx:9200/test6/user
阅读全文
posted @
2019-09-23 16:32
睡着的糖葫芦
阅读(13742)
推荐(1) 编辑
python 使用 elasticsearch 常用方法(索引)
摘要:#记录管理索引等方法from elasticsearch import Elasticsearches = Elasticsearch(['xx.xx.xx.xx:9200'])#获取文档内容res = es.get_source(index="test", id='-R7AQ20BIdlTveXF
阅读全文
posted @
2019-09-23 16:28
睡着的糖葫芦
阅读(8926)
推荐(0) 编辑
ElasticSearch集群状态查看命令大全(转)
摘要:原文地址: https://blog.csdn.net/pilihaotian/article/details/52460747 Elasticsearch中信息很多,同时ES也有很多信息查看命令,可以帮助开发者快速查询Elasticsearch的相关信息。 _cat verbose 每个命令都支持
阅读全文
posted @
2019-09-18 10:35
睡着的糖葫芦
阅读(1212)
推荐(0) 编辑
redis-cli中文乱码
摘要:在开发过程中,需要验证redis缓存中的数据,发现redis存储的中文全是乱码,因为默认情况下redis不转义中文。如果在平常开发中想要看到中文内容,可以在使用redis-cli 命令登陆redis服务器时在后面加上 " --raw" 即可。 一、示例 二、登陆脚本 这样登陆redis后,查看val
阅读全文
posted @
2019-09-03 15:38
睡着的糖葫芦
阅读(1862)
推荐(0) 编辑