Skip to content

Commit

Permalink
la-haute-societe#19 fixing illegal_argument_exception when querying i…
Browse files Browse the repository at this point in the history
…ndixes with more than 10000 entries
  • Loading branch information
floatingbits committed Nov 9, 2021
1 parent c8e094a commit 5a6bdd3
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
@@ -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();
}

/**

0 comments on commit 5a6bdd3

Please sign in to comment.