Skip to content

Commit

Permalink
Merge pull request #1 from floatingbits/bugfix/19-fix-limit-for-more-…
Browse files Browse the repository at this point in the history
…than-10000-entries

la-haute-societe#19 fixing illegal_argument_exception when querying indixes with more…
  • Loading branch information
floatingbits authored Nov 9, 2021
2 parents c8e094a + 5a6bdd3 commit 9977fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/records/ElasticsearchRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function search(string $query)
$this->trigger(self::EVENT_BEFORE_SEARCH, new SearchEvent(['query' => $query]));
$queryParams = $this->getQueryParams($query);
$highlightParams = $this->getHighlightParams();
return self::find()->query($queryParams)->highlight($highlightParams)->limit(self::find()->count())->all();
return self::find()->query($queryParams)->highlight($highlightParams)->all();
}

/**
Expand Down

0 comments on commit 9977fe1

Please sign in to comment.