Skip to content

Commit

Permalink
Change Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
karakhanyans committed Nov 9, 2023
1 parent 76a872a commit e0264c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Engines/TypesenseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(' && ');

Expand Down

0 comments on commit e0264c0

Please sign in to comment.