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"
}