Hello there,
I'm facing this issue with Elasticsearch 7.6.2 with Magento 2.4. Anyone have an idea?
[2020-10-31 07:34:29] main.CRITICAL: {"error":{"root_cause":[{"type":"query_shard_exception","reason":"No mapping found for [position_category_8] in order to sort on","index_uuid":"LkCXUOMsSE-AveQcr24LnA","index":"magento2_product_1_v1386"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"magento2_product_1_v1386","node":"GCg17KQLQy2vaPPfo1tuTg","reason":{"type":"query_shard_exception","reason":"No mapping found for [position_category_8] in order to sort on","index_uuid":"LkCXUOMsSE-AveQcr24LnA","index":"magento2_product_1_v1386"}}]},"status":400} {"exception":"[object] (Elasticsearch\\Common\\Exceptions\\BadRequest400Exception(code: 400): {\"error\":{\"root_cause\":[{\"type\":\"query_shard_exception\",\"reason\":\"No mapping found for [position_category_8] in order to sort on\",\"index_uuid\":\"LkCXUOMsSE-AveQcr24LnA\",\"index\":\"magento2_product_1_v1386\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\"magento2_product_1_v1386\",\"node\":\"GCg17KQLQy2vaPPfo1tuTg\",\"reason\":{\"type\":\"query_shard_exception\",\"reason\":\"No mapping found for [position_category_8] in order to sort on\",\"index_uuid\":\"LkCXUOMsSE-AveQcr24LnA\",\"index\":\"magento2_product_1_v1386\"}}]},\"status\":400} at /var/www/vhosts/mywebsite.com/httpdocs/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:632)"} []