Skip to content

Commit

Permalink
fix: merge options into query parameters for Algolia4 search
Browse files Browse the repository at this point in the history
  • Loading branch information
MingJen committed Dec 3, 2024
1 parent a4c48ac commit eeb30af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Engines/Algolia4Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,11 @@ protected function performSearch(Builder $builder, array $options = [])
);
}

$queryParams = ['query' => $builder->query];
$queryParams = array_merge(['query' => $builder->query], $options);

return $this->algolia->searchSingleIndex(
$builder->index ?: $builder->model->searchableAs(),
$queryParams,
$options
$queryParams
);
}
}

0 comments on commit eeb30af

Please sign in to comment.