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

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?

2 Answers 2


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.

  • 1
    thank you for your answer! On this forum all communication is in English. I translated your answer, I hope you don't mind posting in English next time? Commented Sep 7, 2020 at 6:47
  • @Gyh yes, this is I was about to post that after upgrading to Elastic 6.8 version it started working. Answer Accepted.
    – Farmi
    Commented Sep 10, 2020 at 15:15
  • can you please provide the steps to upgrade elastic search. Commented Jan 12, 2021 at 8:43
  • 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.


  • strange one, it worked for me as well even though I am running 7.10.2 of elastic search
    – user63323
    Commented Apr 3, 2021 at 9:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.