Skip to content

Commit

Permalink
Update TypesenseEngine.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Oct 21, 2024
1 parent 0b2594e commit b180009
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Engines/TypesenseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ protected function buildSearchOptions(array $options, string $query, $useFacetFi
$options['filter_by'] = $filters->join(' && ');
}

return [
'collection' => 'voltimum_products',
...$options
];
return $options;
}

public function get(): SearchResults
Expand All @@ -90,7 +87,9 @@ public function get(): SearchResults
]
];

$response = $engine->getMultiSearch()->perform($searchRequests);
$response = $engine->getMultiSearch()->perform($searchRequests, [
'collection' => (new $this->modelType)->searchableAs(),
]);

return [
...$response['results'][0],
Expand Down

0 comments on commit b180009

Please sign in to comment.