From e0264c0a68831e606b0604a0e0a8a30733b95b01 Mon Sep 17 00:00:00 2001 From: karakhanyans Date: Thu, 9 Nov 2023 20:20:38 +0400 Subject: [PATCH] Change Mapping --- src/Engines/TypesenseEngine.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Engines/TypesenseEngine.php b/src/Engines/TypesenseEngine.php index 390e7fbf..9c9913b3 100644 --- a/src/Engines/TypesenseEngine.php +++ b/src/Engines/TypesenseEngine.php @@ -276,12 +276,18 @@ public function buildSearchParameters(Builder $builder, int $page, int|null $per protected function filters(Builder $builder): string { $whereFilter = collect($builder->wheres) - ->map(fn ($where) => $this->parseWhereFilter($where)) + ->map([ + $this, + 'parseWhereFilter', + ]) ->values() ->implode(' && '); $whereInFilter = collect($builder->whereIns) - ->map(fn ($whereIn) => $this->parseWhereInFilter($whereIn)) + ->map([ + $this, + 'parseWhereInFilter', + ]) ->values() ->implode(' && ');