Allows you to utilize a queue and shove updates/deletes for search into it, keeping your pages fast and your index fresh.
For use with Haystack (http://haystacksearch.org/).
- Django 1.1+ (May work on 1.0.X but untested)
- Haystack 1.X (http://github.com/toastdriven/django-haystack)
And one of:
- Queues (http://code.google.com/p/queues/)
- Celery (http://celeryproject.org)
You also need to install your choice of one of the supported search engines for Haystack and either one of the supported queue backends for Celery or one of those supported by Queues.
- Add
queued_search
toINSTALLED_APPS
. - Alter all of your
SearchIndex
subclasses to inherit fromqueued_search.indexes.QueuedSearchIndex
. - Ensure your queuing solution of choice is running.
- If using Queues: Setup a cron job to run the
process_search_queue
management command. - If using Celery: Run a Celery worker.
- PROFIT!