public function getDecorated(): AbstractProductSearchQueryBuilder
{ throw new DecorationPatternException(self::
class);
} /**
* @return array<SearchConfig>
*/
private function fetchConfig(Context
$context): array
{ foreach ($context->
getLanguageIdChain() as $languageId) { /** @var array<SearchConfig> $config */
$config =
$this->connection->
fetchAllAssociative( 'SELECT
product_search_config.and_logic,
product_search_config_field.field,
product_search_config_field.tokenize,
product_search_config_field.ranking
FROM product_search_config
INNER JOIN product_search_config_field ON(product_search_config_field.product_search_config_id = product_search_config.id)
WHERE product_search_config.language_id = :languageId AND product_search_config_field.searchable = 1 AND product_search_config_field.field NOT IN(:excludedFields)',
[