From 5a7815eeb044738b7b722c3c761cf0ba3d0dd21c Mon Sep 17 00:00:00 2001 From: Patrick Weh <40495041+patrickweh@users.noreply.github.com> Date: Mon, 8 May 2023 22:50:04 +0200 Subject: [PATCH] re-add options for search requests --- src/Engines/MeilisearchEngine.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Engines/MeilisearchEngine.php b/src/Engines/MeilisearchEngine.php index 4b26517d..e5ce4414 100644 --- a/src/Engines/MeilisearchEngine.php +++ b/src/Engines/MeilisearchEngine.php @@ -141,6 +141,8 @@ protected function performSearch(Builder $builder, array $searchParams = []) { $meilisearch = $this->meilisearch->index($builder->index ?: $builder->model->searchableAs()); + $searchParams = array_merge($builder->options, $searchParams); + if ($builder->callback) { $result = call_user_func( $builder->callback,