浏览文章
文章信息
Could not validate a connection to Elasticsearch. The search failed because of a search engine misconfiguration
14920
1、magento的elastic配置错误
如果你进不了系统,请修改core_config_data表中模糊搜索%elastic%,找到配置修改为正确的信息。
例如:
INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_server_hostname', 'es-cn-09k1wjkl9002gsckj.elasticsearch.aliyuncs.com', '2020-11-06 01:52:03'); INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_server_port', '9200', '2020-08-19 06:25:18'); INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_index_prefix', 'magento2', '2020-08-19 06:25:18'); INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_enable_auth', '1', '2020-11-06 01:54:11'); INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_server_timeout', '15', '2020-08-19 06:25:18'); INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_minimum_should_match', NULL, '2020-08-19 06:25:18'); INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_username', 'elastic', '2020-11-06 01:54:11'); INSERT INTO `dev202011261804`.`core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`, `updated_at`) VALUES (null, 'default', '0', 'catalog/search/elasticsearch7_password', '&Ctfwa#sGbUQSUqgxNkqQd$Y*veE%7', '2020-11-06 01:54:11');补全Elasticsearch的配置信息即可!