安装elasticsearch-head谷歌插件,查询es数据

1.下载elasticsearch-head谷歌插件压缩包

https://gitee.com/bing520/development-tool/tree/master/es-head-master

2.解压如图
安装elasticsearch-head谷歌插件,查询es数据
3. 打开谷歌浏览器的拓展程序:
设置–更多攻击–拓展程序
直接讲解压的文件夹拖入拓展程序里边
安装elasticsearch-head谷歌插件,查询es数据
4. 点进去文件夹将文件后缀改名字 为 rar
安装elasticsearch-head谷歌插件,查询es数据
安装elasticsearch-head谷歌插件,查询es数据
5. 在将此解压 ,然后把文件夹拖入拓展程序即可
安装elasticsearch-head谷歌插件,查询es数据
安装elasticsearch-head谷歌插件,查询es数据


如果查询数据查不到,报错
{
“error” : “Content-Type header [application/x-www-form-urlencoded] is not supported”,
“status” : 406
}

解决方法: 修改vendor.js文件,最好手写,复制的有时候不管用
1、6886行
contentType: "application/x-www-form-urlencoded
改成
contentType: “application/json;charset=UTF-8”

2、7573行
var inspectData = s.contentType === “application/x-www-form-urlencoded” &&
改成
var inspectData = s.contentType === “application/json;charset=UTF-8” &&