AWS Elasticsearch with Magento 2 - Catalog Search indexer process unknown error
-
15-04-2021 - |
سؤال
Magento is running on an AWS EC2 instance. AWS Elasticsearch version is 6.0, and Magento is 2.3.4.
Connectivity is successful when I check the connectivity to AWS Elasticsearch via Stores > Settings > Configuration > Catalog > Catalog > Catalog. I am using
- Search Engine: Elasticsearch 6.0+
- Elasticsearch Server Hostname: https://MyAWSElasticsearchServiceEndpoint.com
- Elasticsearch Server Port: 443
When I do bin/magento indexer:reindex catalogsearch_fulltext
I get following error
Catalog Search indexer process unknown error: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/_mapping/document] contains unrecognized parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/_mapping/document] contains unrecognized parameter: [include_type_name]"},"status":400}
Any help please?
المحلول
I also encountered this problem because the version of elasticSearch is too low, and it can be solved by upgrading to version 6.8 or higher.
نصائح أخرى
- I got this error while re-indexing on bitnami server with magento version 2.4. I checked and found ES version 6.5.3.
- I got to magento->admin->stores->configuration->catalog->catalog
search->Search Engine->... and selected "Elasticsearch 6.x (Deprecated)". - Flushed the cache and re-index again and successful.
Thanks,
لا تنتمي إلى magento.stackexchange