src/Paginator/RawPaginatorAdapter.php 1 location
|
@@ 90-99 (lines=10) @@
|
| 87 |
|
* |
| 88 |
|
* {@inheritdoc} |
| 89 |
|
*/ |
| 90 |
|
public function getTotalHits($genuineTotal = false) |
| 91 |
|
{ |
| 92 |
|
if (!isset($this->totalHits)) { |
| 93 |
|
$this->totalHits = $this->searchable->count($this->query); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
return $this->query->hasParam('size') && !$genuineTotal |
| 97 |
|
? min($this->totalHits, (int) $this->query->getParam('size')) |
| 98 |
|
: $this->totalHits; |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
/** |
| 102 |
|
* {@inheritdoc} |
src/Paginator/RawScrollPaginatorAdapter.php 1 location
|
@@ 96-105 (lines=10) @@
|
| 93 |
|
* |
| 94 |
|
* {@inheritdoc} |
| 95 |
|
*/ |
| 96 |
|
public function getTotalHits($genuineTotal = false) |
| 97 |
|
{ |
| 98 |
|
if (!isset($this->totalHits)) { |
| 99 |
|
$this->totalHits = $this->searchable->count($this->query); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
return $this->query->hasParam('size') && !$genuineTotal |
| 103 |
|
? min($this->totalHits, (int) $this->query->getParam('size')) |
| 104 |
|
: $this->totalHits; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* {@inheritdoc} |