cancel
Showing results for 
Search instead for 
Did you mean: 

Pagination not working on search results

Pagination not working on search results

Pagination works when I navigate to a page, but when I search, it doesn't. This is inconvenient when there are 100 results, but when there are 1000+, eventually it just times out and throws a 524 error.

How can I fix this?

Running Magento 2.4.1 and Elasticsearch 7.6

2 REPLIES 2

Re: Pagination not working on search results

Hi @web_master12 

 

Log in to the Magento Admin as an administrator.

 

Click Stores > Settings > Configuration > Catalog > Catalog > Catalog Search.

 

and switch Search Engine to Mysql 

after that reset and reindex using 

 

php bin/magento indexer:reset

php bin/magento indexer:reindex

Problem Solved ? Please click on 'Kudos' & Accept as Solution!

Re: Pagination not working on search results

This isn't a solution for Magento 2.4

 

No one uses mysql search anymore, even on older versions of Magento 2

 

There has to be a fix for this for Elasticsearch 7, especially when it's the only search you can use with Magento 2

 


@Bhanu Periwal wrote:

Hi @web_master12 

 

Log in to the Magento Admin as an administrator.

 

Click Stores > Settings > Configuration > Catalog > Catalog > Catalog Search.

 

and switch Search Engine to Mysql 

after that reset and reindex using 

 

php bin/magento indexer:reset

php bin/magento indexer:reindex

Problem Solved ? Please click on 'Kudos' & Accept as Solution!