Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…searchDSL into 8.x
  • Loading branch information
alexander-schranz committed Jun 15, 2023
2 parents 8712859 + c68676d commit 02c457f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
class Search
{
/**
* If you don’t need to track the total number of hits at all you can improve
* query times by setting this option to false. Defaults to true.
* The total number of hits. Defaults to true (10000 hits).
* You can improve query times by not tracking at all and setting this option to false
* or defining a number of hits you want to track.
*
* @var bool
* @var bool|int
*/
private $trackTotalHits;

Expand Down Expand Up @@ -478,19 +479,19 @@ public function setFrom($from)
}

/**
* @return bool
* @return bool|int
*/
public function isTrackTotalHits()
{
return $this->trackTotalHits;
}

/**
* @param bool $trackTotalHits
* @param bool|int $trackTotalHits
*
* @return $this
*/
public function setTrackTotalHits(bool $trackTotalHits)
public function setTrackTotalHits(bool|int $trackTotalHits)
{
$this->trackTotalHits = $trackTotalHits;

Expand Down

0 comments on commit 02c457f

Please sign in to comment.