How to get a Term list for a field?

Hi All,

Is there a way to get a sorted list of terms from a field in Elasticsearch?

We are going to migrate from Solr to ES and we need something similar to /terms handler, for example:

In this example Solr returns 50 terms started from "cat" and sorted alphabetically.
"mydatabase" can have 10-20 million terms in a field and it's frequently updated.