This is due to the problem of reindexing.
Application \ code \ Modules \ Catalog \ etc. \ di.xml
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\Catalog\Model\Indexer\Category\Product\Action\Full" type="Modules\Catalog\Model\Indexer\Category\Product\Action\Full" /> </config>
Application \ Code \ Modules \ Catalog \ Model \ Indexer \ Category \ Product \ Action \ Full.php
<?php namespace Modules\Catalog\Model\Indexer\Category\Product\Action; class Full extends \Magento\Catalog\Model\Indexer\Category\Product\Action\Full { public function isRangingNeeded() { return false;
Then we must run this command.
php bin/magento cache:clean php bin/magento indexer:reindex
Finally, we got as many as 2000 products on our category page instead of the previous 340 products on the frontend page. In addition, the Product Category tab for index management is only updated from the date the version is updated to the current indexing date and time.
Great experience!
Hope this helps a lot of developers and owners.
source share