tuyennn / magento2-outofstockatlast

Magento 2.4.x module Sort Out Of Stock Product At last the product list
GNU General Public License v3.0
55 stars 12 forks source link

Causes Issue with Elasticsearch #15

Closed terrybakshi closed 2 years ago

terrybakshi commented 2 years ago

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)"} []

tuyennn commented 2 years ago

https://github.com/tuyennn/magento2-outofstockatlast/issues/13 Refer to Configuration README.md for instruction

mohsinleads commented 2 years ago

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.

tuyennn commented 2 years ago

Thanks @terrybakshi @mohsinleads for the report, I will take a look on this.

tuyennn commented 2 years ago

@terrybakshi @mohsinleads unfortunately I cannot replicate yours issue on fresh Magento 2.4.x

Issue-2021-10-21_23 00 47

tuyennn commented 2 years ago

@terrybakshi @mohsinleads due no update from this, I will close the issue

tuyennn commented 2 years ago

@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