category indexes

This commit is contained in:
merdan 2022-05-03 16:52:06 +05:00
parent f7c3838430
commit 9150c75945
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class SearchController extends Controller
$channel = core()->getRequestedChannelCode();
$locale = core()->getRequestedLocaleCode();
$products = $this->productRepository->getModel()::search(implode(' OR ', $key))
$products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key))
->where('status', 1)
->where('visible_individually', 1)
->where('channel', $channel)