Magento 2.4.0 sample data setup:upgrade throws (unclear) error if wrong ES version configured
Don't really have an issue but just wanted to post this here in case someone runs into the same problem and is googling for an answer. Deploying the Magento 2.4.0 sample data on a fresh 2.4.0 install throws this somewhat 'unclear' error (on setup:upgrade):
Module 'Magento_ConfigurableSampleData':
Running data recurring...{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]"},"status":400}
If you get this it means your Magento installation is using a wrong version of ElasticSearch (in my case 6.6.1) and you need to switch to a compatible version (like 7.6.0). More information about setting up ES with Magento 2.4 here
@vdloo just want to say thanks as I ran into this and you're the only result I found!
Same here! I'm using Devilbox to setup a M2 environment and switching to Elastic Search 7.6.0 fixed the issue for me!
I get this error on Magento 2.4.3 for ES 7.8.1, 7.10.1, 7.13.2. It goes for setup:upgrade and when I got sample data first during Magento installation. I'm trying to set it on Docker for development env. I'm at loss what to do to make it work.