Skip to content

Elastic Search issue in Magento 2.4.1

I am facing below error in exception.log file. How can i resolve this error?

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no mapping found for field [amxnotif_hide_alert_value]"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"magento2_product_1_v226","node":"YsQHRziLSUeMo8kQPmEqbw","reason":{"type":"illegal_argument_exception","reason":"no mapping found for field [hide_value]"}}],"caused_by":{"type":"illegal_argument_exception","reason":"no mapping found for field [amxnotif_hide_alert_value]","caused_by":{"type":"illegal_argument_exception","reason":"no mapping found for field [hide_value]"}}},"status":400} {"exception":"[object] (Elasticsearch\Common\Exceptions\BadRequest400Exception(code: 400): {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no mapping found for field [hide_value]"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"magento2_product_1_v226","node":"YsQHRziLSUeMo8kQPmEqbw","reason":{"type":"illegal_argument_exception","reason":"no mapping found for field [hide_value]"}}],"caused_by":{"type":"illegal_argument_exception","reason":"no mapping found for field [hide__value]","caused_by":{"type":"illegal_argument_exception","reason":"no mapping found for field [amxnotif_hide_alert_value]"}}},"status":400} at /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:632)"} []

and

Cannot search on field [upc_code] since it is not indexed