/**
* @param array<string> $ids
*/
private function generateMessage(EntityDefinition
$definition, array
$ids): ElasticsearchIndexingMessage
{ $context = Context::
createDefaultContext();
$alias =
$this->helper->
getIndexName($definition);
$indexing =
new IndexingDto($ids,
$alias,
$definition->
getEntityName());
return new ElasticsearchIndexingMessage($indexing, null,
$context);
} private function createIndexingMessage(IndexerOffset
$offset): ?ElasticsearchIndexingMessage
{ $definition =
$this->registry->
get((string) $offset->
getDefinition());
if (!
$definition) { throw ElasticsearchIndexingException::
definitionNotFound((string) $offset->
getDefinition());
} $entity =
$definition->
getEntityDefinition()->
getEntityName();