Skip to content

Commit 02c457f

Browse files
2 parents 8712859 + c68676d commit 02c457f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Search.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@
3535
class Search
3636
{
3737
/**
38-
* If you don’t need to track the total number of hits at all you can improve
39-
* query times by setting this option to false. Defaults to true.
38+
* The total number of hits. Defaults to true (10000 hits).
39+
* You can improve query times by not tracking at all and setting this option to false
40+
* or defining a number of hits you want to track.
4041
*
41-
* @var bool
42+
* @var bool|int
4243
*/
4344
private $trackTotalHits;
4445

@@ -478,19 +479,19 @@ public function setFrom($from)
478479
}
479480

480481
/**
481-
* @return bool
482+
* @return bool|int
482483
*/
483484
public function isTrackTotalHits()
484485
{
485486
return $this->trackTotalHits;
486487
}
487488

488489
/**
489-
* @param bool $trackTotalHits
490+
* @param bool|int $trackTotalHits
490491
*
491492
* @return $this
492493
*/
493-
public function setTrackTotalHits(bool $trackTotalHits)
494+
public function setTrackTotalHits(bool|int $trackTotalHits)
494495
{
495496
$this->trackTotalHits = $trackTotalHits;
496497

0 commit comments

Comments
 (0)