I am using Magento 2.1
I have an issue that after i re-index products get hidden. I do have a work around but this is not good. Let me explain how I reproduce error then what i do to fix.
- Upload via emagic 7000 products
- I notice as the products are been loaded that the front end is looking good
- After upload products automatically indexed (or i run index command)
- Products are hidden from front end ( i.e 1 page should have 1,500 products but now only shows 500 another page should have 6,000 products but now only shows 500 and a page showing all records with 7,500 now only shows 500)
I can fix this by doing the following 1. run this sql query to disable all products UPDATE catalog_product_entity_int SET value =0 WHERE attribute_id =94
run re-index command php bin/magento indexer:reindex
run sql query to enable all products UPDATE catalog_product_entity_int SET value =1 WHERE attribute_id =94
run re-index command php bin/magento indexer:reindex
run this command (twice) php bin/magento cron:run php bin/magento cron:run
then all products display again. but if i run re-index again I have to repeat steps i to 5 to get working again which is not very good.
I also notice that the below 2 commands cause the issue, all other index commands run seperatly cause no problems php bin/magento indexer:reindex catalog_category_product php bin/magento indexer:reindex catalog_product_category
How can I fix this permanently? any ideas