magepow / magento-2-layered-navigation

Magento 2 Layered Navigation extension Free optimizes the navigation process, redirects users to product catalog pages, and makes finding products easier
https://magepow.com/magento-2-layered-navigation-advanced.html
18 stars 5 forks source link

Magento 2.4 Layered Navigation Filter with Multiple Attributes not working. #3

Open himanitayal010 opened 3 years ago

himanitayal010 commented 3 years ago

https://github.com/magepow/magento-2-layered-navigation/blob/b3adcf14eca6c9efffddfd6f14fcaa89c0a7c219/Model/Layer/Filter/Attribute.php#L69

I am using Magento 2.4.1. I spend hours to debug this issue, I thought this is elasticsearch issue but no, this is this extension issue: main.CRITICAL: {"error":{"root_cause":[{"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [ln_filter]","line":1,"col":223}],"type":"parsing_exception","reason":"[terms] unknown token [START_ARRAY] after [ln_filter]","line":1,"col":223},"status":400} {"exception":"[object] (Elasticsearch\Common\Exceptions\BadRequest400Exception(code: 400): {\"error\":{\"root_cause\":[{\"type\":\"parsing_exception\",\"reason\":\"[terms] unknown token [START_ARRAY] after [ln_filter]\",\"line\":1,\"col\":223}],\"type\":\"parsing_exception\",\"reason\":\"[terms] unknown token [START_ARRAY] after [ln_filter]\",\"line\":1,\"col\":223},\"status\":400} at /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:632)"} []

magiccart commented 3 years ago

@himanitayal010 This the issue caused with ElasticSearch when filter Multivalued on Magento this module just extends from feature Magento. Guys can refer here report here https://github.com/magento/magento2/issues/18802