ElasTICSEARCH resource_already_exists_exception IN Magento 2



ElasticSuite类别索引处理未知错误,如下所示:

{"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"index [missi_default_catalog_category_missiindices/Cv5ewK3dSLKzecqC5k6Z6g] already exists","index_uuid":"Cv5ewK3dSLKzecqC5k6Z6g","index":"missi_default_catalog_category_missiindices"}],"type":"resource_already_exists_exception","reason":"index [missi_default_catalog_category_missiindices/Cv5ewK3dSLKzecqC5k6Z6g] already exists","index_uuid":"Cv5ewK3dSLKzecqC5k6Z6g","index":"missi_default_catalog_category_missiindices"},"status":400}

Magento在2.2.2或2.2.3中添加了对Elasticsearch 5+的支持(在此之前只支持2.x(,要使用它,您需要在admin或中将搜索引擎设置设置为Elasticsearch 5.0+

  • magento config:set catalog/search/elasticsearch5_server_hostname elasticsearch
    (其中elasticsearch是ElasticSearch服务器的主机名(
  • magento config:set catalog/search/engine elasticsearch5

在CLI中。

最新更新