如何使用php-elasticsearch客户端从elasticsearch获取所有文档

In one of my index, I've got the 80000 documents. I'm trying to get all the data in a single hit. There is a maximum limit of 10000 data.

How do I can get all 80000 records at a time through php ?.

I'm referring this URL https://packagist.org/packages/elasticsearch/elasticsearch

$params = [
    "scroll" => "30s",          
    "size" => 10000,               
    "index" => $stdIndex,
    'type' => $stdIndexType];

$response = $client->search($params);

while (isset($response['hits']['hits']) && count($response['hits']['hits']) > 0) {
$scroll_id = $response['_scroll_id'];
$response = $client->scroll([
        "scroll_id" => $scroll_id,
        "scroll" => "30s"]
);
}