public batch ( string $scrollWindow = '1m', |
||
$scrollWindow | string | how long Elasticsearch should keep the search context alive, in [time units](https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#time-units) |
$db | the database connection. If not set, the `elasticsearch` application component will be used. | |
return | the batch query result. It implements the [[\Iterator]] interface and can be traversed to retrieve the data in batches. |