magepow/magento-2-layered-navigation

Magento 2.4 Layered Navigation Filter with Multiple Attributes not working.

himanitayal010 opened this issue · 1 comments

$productCollection->addFieldToFilter($attribute->getAttributeCode(), array('ln_filter' => $valueFilter));

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

@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 magento/magento2#18802