Skip to content

Commit

Permalink
fix filters not applying
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Nov 7, 2024
1 parent 6636a87 commit 67a13d7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Engines/TypesenseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,14 @@ protected function buildSearch(array $options): array
$requests = [];

$facets = $this->getFacetConfig();

$filters = collect($options['filter_by']);

foreach ($this->filters as $key => $value) {
$filters->push($key.':'.collect($value)->join(','));
}


foreach ($searchQueries as $searchQuery) {

$filters = collect();
$filters = collect($options['filter_by']);

foreach ($this->filters as $key => $value) {
$filters->push($key.':'.collect($value)->join(','));
}

$facetQuery = collect();

Expand Down

0 comments on commit 67a13d7

Please sign in to comment.