$documents[] =
['delete' =>
['_id' =>
$id]];
} $arguments =
[ 'index' =>
$index,
'body' =>
$documents,
];
$result =
$this->client->
bulk($arguments);
if (\
is_array($result) &&
isset($result['errors'
]) &&
$result['errors'
]) { $errors =
$this->
parseErrors($result);
throw new ElasticsearchIndexingException($errors);
} } private function handleLanguageIndexIteratorMessage(ElasticsearchLanguageIndexIteratorMessage
$message): void
{ /** @var LanguageEntity|null $language */
$language =
$this->languageRepository->
search(new Criteria([$message->
getLanguageId()]), Context::
createDefaultContext())->
first();
if ($language === null
) {