Since i updated my instance from 2.3 to 2.4.5-p1 somehow my shop is not filtering products anymore in the category list pages. I tried to debug it and these steps are already taken:
- Flushed cache (ofcourse 23523523 times)
- Upgraded Elastic to 7.17.6 and rebuild full index
- Fallback to native magento blank theme (still not filtering)
When i review what the site is doing it creates an url like this:
https://domain.tld/exams.html?location_city=1800
The page itself shows me a paginator with 2 pages where there should be 14 products as also indicated by the filter on the sidebar. However on the top it still keeps showing “205 Items” and all the items are actually shown (limited by what the paginator does).
I started digging further inside the code and found that Elasticsearch
is returning the right values for a query:
^ MagentoFrameworkSearchResponseQueryResponse {#2321 ▼
#documents: array:6 [▼
0 => MagentoFrameworkApiSearchDocument {#2229 ▶}
1 => MagentoFrameworkApiSearchDocument {#2282 ▶}
2 => MagentoFrameworkApiSearchDocument {#2288 ▶}
3 => MagentoFrameworkApiSearchDocument {#2286 ▶}
4 => MagentoFrameworkApiSearchDocument {#2227 ▶}
5 => MagentoFrameworkApiSearchDocument {#2290 ▶}
]
#aggregations: MagentoFrameworkSearchResponseAggregation {#2318 ▶}
-total: 6
}
As expected in these case since the filter hold 6 results.
Hope that someone has an idea
Thanks!