You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MSI plugin class prevents indexing in-stock products in special scenarios. When indexing Magento indexes products in a batch of 500 (default). On each batch, it goes to loop until it finds 0 products. Let's say there are 50,000 SKUs and the system is indexing
when on the 10th batch, it finds 460 products, and the MSI plugin checks if these consist of any out-of-stock products and returns only in-stock arrays. If none is found it then returns an empty array. Now, when Magento receives 0 products it thinks it reached the end of products and then stops indexing after that batch. Meaning there could be more products that are in stock that needs to be indexed.
You can try with the default instance, at least for me (I am in the commerce version) it is behaving this way. Regardless, the system should index all the in-stock products, even out of 100,000 products, only 2 items (entity ID 1 and entity ID 100,000 are in stock). Currently, the system only indexes entity ID 1.
MSI plugin class prevents indexing in-stock products in special scenarios. When indexing Magento indexes products in a batch of 500 (default). On each batch, it goes to loop until it finds 0 products. Let's say there are 50,000 SKUs and the system is indexing
when on the 10th batch, it finds 460 products, and the MSI plugin checks if these consist of any out-of-stock products and returns only in-stock arrays. If none is found it then returns an empty array. Now, when Magento receives 0 products it thinks it reached the end of products and then stops indexing after that batch. Meaning there could be more products that are in stock that needs to be indexed.
In Magento this line https://github.com/magento/magento2/blob/28c1f28a2552de69158b40d1eaf84e45430c16f9/app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/Full.php#L382 it loops through
catalog_entity_table
in a batch of 500 (default).When MSI returns
0
products of that batch (inventory/InventoryCatalogSearch/Plugin/CatalogSearch/Model/Indexer/ChildProductFilterByInventoryStockPlugin.php
Line 62 in e05d62a
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Display Out of Stock Products
is set toNo
in configActual result (*)
The text was updated successfully, but these errors were encountered: