/**
* @param array<string, mixed> $input
*/
public function indexElasticSearch(array
$input =
[]): void
{ $this->
getDiContainer() ->
get(ElasticsearchAdminIndexingCommand::
class) ->
run(new ArrayInput([...
$input, '--no-queue' => true
]),
new NullOutput());
$this->
runWorker();
$this->
refreshIndex();
} public function refreshIndex(): void
{ $this->
getDiContainer()->
get(Client::
class) ->
indices() ->
refresh(['index' => '_all'
]);
} abstract protected function getDiContainer(): ContainerInterface;