Hi. We are running a Shopware installation v6.2.3. There is a Search feature on the site with Suggested results shown in dropdown. The dropdown currently holds 10 results but we would like to increase this, there is no where in the documentation to show where this limit of 10 is set. Firstly is it possible to increase this limit. Also, we would like to filter on the search result list to prevent a specific set of products from showing and possibly have the results in some order. We are using the SuggestPageLoader from SW Core - Is it possible to add a filter and sorting to the suggest page loader (overriding the class with our own custom class). The core code is this:
public function load(Request $request, SalesChannelContext $salesChannelContext): SuggestPage
$page = $this->genericLoader->load($request, $salesChannelContext);
$page = SuggestPage::createFrom($page); $page->setSearchResult($this->productSuggestRoute->load($request, $salesChannelContext)->getListingResult()); $page->setSearchTerm($request->query->get('search')); $this->eventDispatcher->dispatch( new SuggestPageLoadedEvent($page, $salesChannelContext, $request) ); return $page; }
I also want to add that I have looked at the Admin dashboard settings page and we have no „Search“ settings option - which i have seen being used on some YouTube videos on the subject. Is there something missing in our installation?