elasticsearch-sql安装


Github地址:https://github.com/NLPchina/elasticsearch-sql 
elasticsearch-sql插件可以方便我们使用SQL语言来对elasticsearch进行查询

1、进入elasticsearch的安装目录,执行如下命令(windows和linux的斜杠要注意):

./bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/6.2.3.0/elasticsearch-sql-6.2.3.0.zip

或者从Github上下载后解压放在ES的plugins\sql下

2、下载页面需要的node.js文件

https://github.com/NLPchina/elasticsearch-sql/releases/download/5.4.1.0/es-sql-site-standalone.zip

在解压目录下安装运行即可

npm install express --save

node node-server.js

elasticsearch-sql的默认端口是8080,可以在site-server/site_configuration.json文件中进行修改 
然后 打开 http://localhost:8080/ 访问插件

注意修改右上角本地elasticsearch的地址,sql脚本不需要以分号“;”结尾,如果一个index有多个type,表名用indexName/typeName表示


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM