We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cf01cf commit fc89dcdCopy full SHA for fc89dcd
1 file changed
src/Model/AbstractBaseService.php
@@ -96,7 +96,7 @@ public function getAllBy(
96
throw $exception;
97
}
98
99
- if ($resultSearch->stats()->total() === 0) {
+ if ($resultSearch->hits()->count() === 0) {
100
throw new \Spameri\Elastic\Exception\DocumentNotFound($this->index, $elasticQuery);
101
102
0 commit comments