$this ->
addArgument('term', InputArgument::REQUIRED
);
} protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $this->io =
new ShopwareStyle($input,
$output);
$term =
$input->
getArgument('term'
);
$iteration =
$this->
getAnalyzers();
$rows =
[];
foreach ($iteration as $headline =>
$analyzers) { $rows[] =
[$headline];
$rows[] =
['###############'
];
foreach ($analyzers as $analyzer) { /** @var array{'tokens': array{token: string}[]} $analyzed */
$analyzed =
$this->client->
indices()->
analyze([ 'body' =>
[ 'analyzer' =>
$analyzer,
'text' =>
$term,
],