Fatal error: Uncaught Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"offre","node":"pT1iRkZmRLu4l3TJgocXqQ","reason":{"type":"illegal_argument_exception","reason":"numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count"}}],"caused_by":{"type":"illegal_argument_exception","reason":"numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count","caused_by":{"type":"illegal_argument_exception","reason":"numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count"}}},"status":400} in /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:657 Stack trace: #0 /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(312): Elasticsearch\Connections\Connection->process4xxError(Array, Array, Array) #1 /var/www/libertyprim.com/vendor/react/promise/src/FulfilledPromise.php(28): Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}(Array) #2 /var/www/libertyprim.com/vendor/ezimuel/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL) #3 /var/www/libertyprim.com/vendor/ezimuel/ringphp/src/Core.php(341): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL) #4 /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(332): GuzzleHttp\Ring\Core::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure)) #5 /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(204): Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}(Array, Object(Elasticsearch\Connections\Connection), Object(Elasticsearch\Transport), Array) #6 /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(116): Elasticsearch\Connections\Connection->performRequest('POST', '/offre/_search', Array, '{"track_scores"...', Array, Object(Elasticsearch\Transport)) #7 /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1482): Elasticsearch\Transport->performRequest('POST', '/offre/_search', Array, Array, Array) #8 /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1121): Elasticsearch\Client->performRequest(Object(Elasticsearch\Endpoints\Search)) #9 /var/www/libertyprim.com/public/pages/offres/index.php(232): Elasticsearch\Client->search(Array) #10 /var/www/libertyprim.com/public/index.php(263): require('/var/www/libert...') #11 {main} thrown in /var/www/libertyprim.com/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php on line 657