Closed michwill closed 8 years ago
Currently reindex seems to be called through dbmodel's _catalog attribute. Is there another way to call reindex or maybe could add reindex api in db.py
Yes, very good point!
I implement this auto-reindex in this pr based on collective.indexing. Please review it
Awesome, thanks @xueyumusic ! Cleaned it up removing unnecessary Plone-specific things even further
Right now, when changes are made to a document or object, one should run re-index manually (and commit).
That's not very convenient. It's much better to fire a zope event on change and put changes in a queue. At the commit event, the objects (or rather just changed fields) should be re-indexed automatically. Perhaps, good library to look at is collective.indexing