blacktop/docker-elasticsearch-alpine

POST _sql doesn't work

Closed this issue · 2 comments

I assume some plugins or modules weren't included?
the official build from ES supports POST _sql

curl -XPOST "http://localhost:9200/_sql" -H 'Content-Type: application/json' -d'{  "query": "SELECT parameters.gen FROM performance"}'
{"error":"Incorrect HTTP method for uri [/_sql] and method [POST], allowed: [PUT, GET, DELETE, HEAD]","status":405}

maybe try: blacktop/elasticearch:x-pack

https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-overview.html

Elasticsearch SQL is an X-Pack component

$ docker run --init -it --rm --name elasticsearch -p 9200:9200 -e ELASTIC_PASSWORD=password -e "discovery.type=single-node" blacktop/elasticsearch:x-pack