Skip to content

Instantly share code, notes, and snippets.

@notanumber
Created October 22, 2009 19:59
Show Gist options
  • Save notanumber/216247 to your computer and use it in GitHub Desktop.
Save notanumber/216247 to your computer and use it in GitHub Desktop.
# For Haystack 1.0 or lower
*/15 * * * * cd /path/to/my/site/ && DJANGO_SETTINGS_MODULE=site.settings PYTHONPATH=.:..:../lib python ./manage.py reindex --age=1 > ../../log/search_indexes.log
# For Haystack 1.1 or higher
*/15 * * * * cd /path/to/my/site/ && DJANGO_SETTINGS_MODULE=site.settings PYTHONPATH=.:..:../lib python ./manage.py update_index --age=1 > ../../log/search_indexes.log
@timchurch
Copy link

FYI - The command to reindex in django-haystack is now 'update_index'

@notanumber
Copy link
Author

True. I've updated the gist, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment