cat function

Use the cat Elasticsearch api.