After 2.4.0 upgrade from 2.3.5-p1 pagination has stopped work and results in all products being returned. Issue relates to https://github.com/Smile-SA/elasticsuite/commit/207c5d93e730545c8e6e5829ea57a58673cff73e#diff-6a285666f9fbbc83496890ef4c186174 specifically:
protected function _beforeLoad()
{
if ($this->_pageSize !== false) {
$this->originalPageSize = $this->_pageSize;
$this->_pageSize = false;
}
return parent::_beforeLoad();
}
which once removed resolve my issue.
Magento Version : 2.4.0 EE
ElasticSuite Version : 2.10.0
Environment : Developer & Production
Third party modules : N/A
I create a quick fix for this #1914. Can you verify is this works for you?
Hi,
we tested #1914. It works as expected. Thank you!
I close for being a duplicate of #1903
We'll try to release a version containing this fix very soon.
To be transparent, I was on vacations, so thank you @Bashev for taking care of this so quickly :)
Please upgrade to 2.10.1 which contains the fix
Same issue facing in latest version
Preconditions
Magento Version : 2.4.1 EE
ElasticSuite Version : 2.10.0
Environment : Developer & Production
Third party modules : N/A
@jimuld please see my comment, you have to update to Elasticsuite 2.10.1
@romainruaud, sectio on "Which version should I use ?" says 2.10.1 no actively maintained, and mentioned as have to use 2.10.0 Mageno >=2.4.1
You read it wrong.
Magento 2.4.0 => ElasticSuite 2.10.1 maximum, can't go higher.
Magento 2.4.1 and above => Elasticsuite 2.10.2
@romainruaud yes red wrong, thanks for the clarification
@romainruaud we upgraded to 2.10.3, still issue is there now its pagination working but showing all products on all page. For example there are 31 products in category and page size is 12, loading all 31 products on all pages
@jimuld Could you resolve this issue. I'm having the same issue. I've updated to magento 2.4.2 and elasticsuite 2.10.4 and having the same problem you have described. All products are shown on all pages. Collection size is 38 and only 20 products should be shown per page. But all 38 products are listed.
@romainruaud any ideas?