'min_search_length' => 2,
'excluded_terms' =>
$enLanguageId ?
json_encode($enStopwords, \JSON_THROW_ON_ERROR
) : null,
] );
$writeResult =
$this->
importTranslation(ProductSearchConfigDefinition::ENTITY_NAME,
$translations,
$connection);
$createdAt =
(new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
);
$defaultSearchData =
[];
if ($writeResult->
hasWrittenEnglishTranslations()) { $defaultSearchData =
$this->
getConfigFieldDefaultData($searchConfigEnId,
$createdAt);
} if ($writeResult->
hasWrittenGermanTranslations()) { $defaultSearchData =
[...
$defaultSearchData, ...
$this->
getConfigFieldDefaultData($searchConfigDeId,
$createdAt)];
} $queue =
new MultiInsertQueryQueue($connection, 250
);
foreach ($defaultSearchData as $searchData) { $entityName =
$searchData['table'
];
unset($searchData['table'
]);