File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 35
35
class Search
36
36
{
37
37
/**
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.
40
41
*
41
- * @var bool
42
+ * @var bool|int
42
43
*/
43
44
private $ trackTotalHits ;
44
45
@@ -478,19 +479,19 @@ public function setFrom($from)
478
479
}
479
480
480
481
/**
481
- * @return bool
482
+ * @return bool|int
482
483
*/
483
484
public function isTrackTotalHits ()
484
485
{
485
486
return $ this ->trackTotalHits ;
486
487
}
487
488
488
489
/**
489
- * @param bool $trackTotalHits
490
+ * @param bool|int $trackTotalHits
490
491
*
491
492
* @return $this
492
493
*/
493
- public function setTrackTotalHits (bool $ trackTotalHits )
494
+ public function setTrackTotalHits (bool | int $ trackTotalHits )
494
495
{
495
496
$ this ->trackTotalHits = $ trackTotalHits ;
496
497
You can’t perform that action at this time.
0 commit comments