I've ben having some trouble with my site since upgrading to Magento ver. 2.4.0.
My products don't appear in the category pages and when I try to reindex I get the following error message:
Catalog Search index process unknown error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."}],"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."},"status":400}
From what I've seen through a little research this seems to be related to Elasticsearch so I ran the command: curl -XGET '<hostIP:port>/_cat/health?v&pretty'
And got the message:
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1606836115 15:21:55 docker-cluster yellow 1 1 2 2 0 0 2 0 - 50.0%
I've seen that this might be due to having the wrong version of Elasticsearch installed but I'm not sure how to upgrade/downgrade my version so any guidance on this would be appreciated.