/**
* @throws CategoryNotFoundException
* @throws InconsistentCriteriaIdsException
* @throws RoutingException
*/
public function load(Request
$request, SalesChannelContext
$salesChannelContext): SearchPage
{ $page =
$this->genericLoader->
load($request,
$salesChannelContext);
$page = SearchPage::
createFrom($page);
if ($page->
getMetaInformation()) { $page->
getMetaInformation()->
setRobots('noindex,follow'
);
} if (!
$request->query->
has('search'
)) { throw RoutingException::
missingRequestParameter('search'
);
} $criteria =
new Criteria();
$criteria->
setTitle('search-page'
);
$result =
$this->productSearchRoute
->
load($request,
$salesChannelContext,
$criteria)