Allows you to leverage the update/delete operations of your Haystack search index to backgrounds tasks using RQ, a lightweight Redis background queue.
For use with Haystack version 2.0+.
- Django 1.3+
- Haystack 2.0.X
- RQ
- django-rq
You also need to install your choice of one of the supported search engines for
Haystack and have properly configured Redis and django-rq
.
- Just make shure the
haystack_rqueue
directory is available in yourPYTHON_PATH
. The prefered way is to runpip install https://github.com/mandx/haystack-rqueue/tarball/master
- Alter all of your
SearchIndex
subclasses to inherit fromhaystack_rqueue.indexes.RQueueSearchIndex
(as well ashaystack.indexes.Indexable
). - Configure
django-rq
(see the README) and ensure your Redis instance is running and it's accessible. - Start the RQ workers (via
$ ./manage.py rqworker
). - Profit!