elsearch 安装sql插件

elsearch安装sql插件

  • install

    1
    ./bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/5.5.1.0/elasticsearch-sql-5.5.1.0.zip
  • install ui web front-end

    1
    2
    3
    4
    5
    https://github.com/NLPchina/elasticsearch-sql/releases/download/5.4.1.0/es-sql-site-standalone.zip

    cd site-server
    npm install express --save
    node node-server.js &
  • request web

    1
    2
    3
    4
    http://site:8080

    // 修改头部请求链接
    http://site:9200
  • 输入查询语句通过explain后将代码调整为文档格式后请求搜索