};
} /**
* @param array<string, array<mixed>> $newCreatedFields
*/
private function createNewFieldsInIndices(array
$newCreatedFields): void
{ $indices =
$this->indexDetector->
getAllUsedIndices();
$enabledMultilingualIndex =
$this->elasticsearchHelper->
enabledMultilingualIndex();
$languageIds =
$enabledMultilingualIndex ?
$this->connection->
fetchFirstColumn('SELECT LOWER(HEX(`id`)) FROM language'
) :
[];
foreach ($indices as $indexName) { // Check if index is old language based index
$isLanguageBasedIndex = true;
$body =
[ 'properties' =>
[ 'customFields' =>
[ 'properties' =>
[],
],
],