Skip to content
This repository was archived by the owner on May 13, 2021. It is now read-only.

Commit 4495035

Browse files
authored
Merge pull request #1 from meilisearch/fix-search-parts
Fix search parts
2 parents 085249c + 8a9ebec commit 4495035

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Engines/MeilisearchEngine.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function __construct(Meilisearch $meilisearch, bool $softDelete = false)
3434
* @param \Illuminate\Database\Eloquent\Collection $models
3535
*
3636
* @return void
37+
*
3738
* @throws \MeiliSearch\Exceptions\HTTPRequestException
3839
*/
3940
public function update($models)
@@ -114,7 +115,7 @@ public function paginate(Builder $builder, $perPage, $page)
114115
*
115116
* @return mixed
116117
*/
117-
protected function performSearch(Builder $builder, array $options = [])
118+
protected function performSearch(Builder $builder, array $searchParams = [])
118119
{
119120
$meilisearch = $this->meilisearch->index($builder->index ?: $builder->model->searchableAs());
120121

@@ -123,11 +124,11 @@ protected function performSearch(Builder $builder, array $options = [])
123124
$builder->callback,
124125
$meilisearch,
125126
$builder->query,
126-
$options
127+
$searchParams
127128
);
128129
}
129130

130-
return $meilisearch->search($builder->query, $options);
131+
return $meilisearch->rawSearch($builder->query, $searchParams);
131132
}
132133

133134
/**

0 commit comments

Comments
 (0)