Support for ElasticSearch queries returning large result set

Hi Dave,
could you please merge this change to the master?

It adds a method to run ElasticSearch queries returning large number of records in a way which avoids memory overhead at the server.

Thanks,
Aleh