GitHub - NLPchina/elasticsearch-sql: Use SQL to query Elasticsearch
Since 7.5.0.0, the path /_sql
is changed to /_nlpcn/sql
, and the path /_sql/_explain
is changed to /_nlpcn/sql/explain
.
ES版本7.12.0.0
./bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/7.12.0.0/elasticsearch-sql-7.12.0.0.zip
安装后,重启ES
postman查询
查询数据总量设置
select /*! TRACK_TOTAL_HITS(true) */* from sourcedata limit 10
,如果是ES集群的话,每个节点都安装sql插件,然后重启ES即可