monsieurbiz / SyliusSearchPlugin

A search plugin using Elasticsearch for Sylius
MIT License
45 stars 38 forks source link

[Error] - an index or data stream exists with the same name as the alias #217

Open SparkDragon opened 1 month ago

SparkDragon commented 1 month ago

Versions

Description Hi !

When executing the command php bin/console monsieurbiz:search:populate I get the folloing error:

Invalid alias name [monsieurbiz_product_fr_fr]: an index or data stream exists with the same name as the alias

Here is the stack trace:

Indexing monsieurbiz_product
Indexing monsieurbiz_product for locale fr_FR

In Http.php line 178:

  [Elastica\Exception\ResponseException]
  Invalid alias name [monsieurbiz_product_fr_fr]: an index or data stream exists with the same name as the alias

Exception trace:
  at /srv/sylius/vendor/ruflin/elastica/src/Transport/Http.php:178
 Elastica\Transport\Http->exec() at /srv/sylius/vendor/ruflin/elastica/src/Request.php:183
 Elastica\Request->send() at /srv/sylius/vendor/ruflin/elastica/src/Client.php:545
 Elastica\Client->request() at /srv/sylius/vendor/jolicode/elastically/src/IndexBuilder.php:67
 JoliCode\Elastically\IndexBuilder->markAsLive() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Index/Indexer.php:200
 MonsieurBiz\SyliusSearchPlugin\Index\Indexer->indexDocumentable() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Index/Indexer.php:176
 MonsieurBiz\SyliusSearchPlugin\Index\Indexer->indexDocumentable() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Index/Indexer.php:71
 MonsieurBiz\SyliusSearchPlugin\Index\Indexer->indexAll() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Command/PopulateCommand.php:42
 MonsieurBiz\SyliusSearchPlugin\Command\PopulateCommand->execute() at /srv/sylius/vendor/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at /srv/sylius/vendor/symfony/console/Application.php:1096
 Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:126
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:80
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/sylius/vendor/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at /srv/sylius/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
 Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /srv/sylius/vendor/autoload_runtime.php:29
 require_once() at /srv/sylius/bin/console:11

Any idea what's the origin of this issue ?