I am having an issue with my company's test site's Elasticsearch. Every time I try to do a reindex, the Catalog Search has the following error:
Catalog Search indexer process unknown error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Enabling [_all] is disabled in 6.0. As a replacement, you can use [copy_to] on mapping fields to create your own catch all field."}],"type":"illegal_argument_exception","reason":"Enabling [_all] is disabled in 6.0. As a replacement, you can use [copy_to] on mapping fields to create your own catch all field."},"status":400}
And this error occurs when I have set the Catalog Search on my site's Magento Admin panel to either Elasticsearch or Elasticsearch 6.0+. Now, I tried many different ideas to solve the above error. For example, setting the {"index.blocks.read_only_allow_delete": false} (and this solved an earlier problem). So, any suggestions would be helpful?
Now, here is my Magento site setup:
PHP version: 7.2.27
Magento version: 2.3.4 community edition
OS: CentOS 7.7.1908
Elasticsearch: 6.8.7-1
Also, I recently performed an in-place upgrade where I created the test site from a base Magento 2.3.4. Then, added all of the modules I needed. Finally, I copied over a backup of my company's production database and ran the Magento upgrade and compile commands (e.g., "magento setup:upgrade" and "magento setup:di:compile"). And note the production database was based-on Magento 2.3.1.
Thanks in advance for your help.
Regards,
Alvaro