Implementing SQL query in Elasticsearch, not able to extract records more than 1000 in spite of LIMIT > 1000. Tried "index.mapping.total_fields.limit": 5000, but did not help.
POST _sql?format=txt
{
"query": "SELECT column1 FROM table LIMIT 5000"
}
TL;DR not possible at the moment
https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-limitations.html