Here is my first module on this blog : a partial index module for versions of Magento which haven’t got it natively?
You can reindex a list of products, it’s very useful when you have got huge catalog, and you can win some hours of indexation.
The behaviour of the module is :
– An observer retrieve saved products to prepare their reindexation.
– You can launch the partiel index manually, on the indexes admin page.
– By default, if a cron is running on your server, this reindexation is called every 6 hours, with a maximum limit of 500 products on each redinxation.
You can change these settings :
– Enable/Disable Cron
– Cron Schedule
– Max number of products to reindex on a call (0 for no limit)
You can add/remove some products on the reindex list :
If you have some suggestions, or need some help, you can leave a comment.
Don’t forget to disconnect and reconnect of the Magento Admin Panel to avoid 404 errors on System > Config module’s settings.
“Minimax_Partialindex” requires module “Minimax_Retraction”.”;i:1;s:730:”#0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Config.php(849): Mage::throwException(‘Module “Minimax…’)
when i used your code it showing the following error
“Module “Minimax_Partialindex” requires module “Minimax_Retraction”.
Remove the dependance on app/etc/modules/Minimax_Partialindex.xml
I reuploaded the zip archive with the correction!
Thank for the bug report
So we dont need ‘Minimax_Retraction’ module for partial indexing????
in my case “system->product a indexer partiellement” is working fine!!!:)
(grid for products)….
but has you discribed ‘catalogue->indexation Partielle’ is not appering in admin !!!??? is that bcz of the missing ‘Minimax_Retraction’ module??
No you don’t need Minimax_Retraction, it was an error.
Try to clean the cache, some XML can be cached. Log out of the admin pannel and reconnect.
THANKS
ITS WORKING GREAT!!!!
Does this support CE 1.7.2?
I don’t know, try from yourself and you will see ^^
Mage::helper(‘minimax_partialindex’) call will give error PHP Fatal error: Class ‘Mage_Minimax_Partialindex_Helper_Data’ not found in app/Mage.php on line 548
use call Mage::helper(‘partialindex’) and also do change in xml file as
Minimax_Partialindex_Helper
Very strange, it works for me with Mage::helper(‘minimax_partialindex’). Did you change the case of one filename somewhere on the module ?
Hi there
Great module, it really helps with big/huge catalogs.
Just one question:
In the Index lists, it says “Reindex required”, but at the same time “Updated needed” shows No.
What should I do in that case? What happens if I click Reindex (I want to avoid full product reindex, because we use elastic with a veery big catalog).?
I think the status “Required Indexed” is always displayed. Don’t care about it.
If you click on reindex, you will reindex the products which are on the waiting list.
Try it on a preproduction environment before to be sure
Thanks Maxime!
We stumbled upon this question: Does the partial index also observe products added via Magento API? Or would we need to develop our own observer for this?
I’m not sure if my question was saved 🙂
Does the partial indexer also work for products added by API?
The observer is catalog_product_save_after so if your API make save on product, it will be reindexed
I mean the standard Magento API (not direct SQL like magmi). Maybe you know if that observer is triggered or not? 🙂
If you check app/code/core/Mage/Catalog/Model/Product/Api.php you see the create function. There is a “save” inside. So it’s okay 😉
Hi Maxime
Amazing module!
Is it possible to add a range of products or CSV to the partial index?
I can add one product id, but sometimes I need a full range.
If it does not exist, could it be developed by you on request?
I will not develop it, I’m sure you can do it yourself 😉