Closed terrybakshi closed 2 years ago
https://github.com/tuyennn/magento2-outofstockatlast/issues/13 Refer to Configuration README.md for instruction
having same issue not able to search. if you want to check please see this.
https://toybusters.com.au/disney-toy.html product URL
https://toybusters.com.au/catalogsearch/result/?q=disney search page.
Thanks @terrybakshi @mohsinleads for the report, I will take a look on this.
@terrybakshi @mohsinleads unfortunately I cannot replicate yours issue on fresh Magento 2.4.x
@terrybakshi @mohsinleads due no update from this, I will close the issue
@terrybakshi @mohsinleads thanks for reporting this, this was confirmed. Seem it happened with new products while the state of index was not found right after adding them to the store
2021-10-20 12:47:50] main.CRITICAL: {"error":{"root_cause":[{"type":"query_shard_exception","reason":"No mapping found for [out_of_stock_at_last] in order to sort on","indexuuid":"mZx8iP-TwqV3YZhSb0mRQ","index":"magento2_product_1_v182"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"magento2_product_1_v182","node":"QojGcWy_SN-pJQgKPP89cA","reason":{"type":"query_shard_exception","reason":"No mapping found for [out_of_stock_at_last] in order to sort on","indexuuid":"mZx8iP-TwqV3YZhSb0mRQ","index":"magento2_product_1_v182"}}]},"status":400} {"exception":"[object] (Elasticsearch\Common\Exceptions\BadRequest400Exception(code: 400): {\"error\":{\"root_cause\":[{\"type\":\"query_shard_exception\",\"reason\":\"No mapping found for [out_of_stock_at_last] in order to sort on\",\"indexuuid\":\"mZx8iP-TwqV3YZhSb0mRQ\",\"index\":\"magento2_product_1_v182\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\"magento2_product_1_v182\",\"node\":\"QojGcWy_SN-pJQgKPP89cA\",\"reason\":{\"type\":\"query_shard_exception\",\"reason\":\"No mapping found for [out_of_stock_at_last] in order to sort on\",\"indexuuid\":\"mZx8iP-TwqV3YZhSb0mRQ\",\"index\":\"magento2_product_1_v182\"}}]},\"status\":400} at /home/domain/public_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:675)"} []