[Django]-Using haystack with Whoosh

1👍

Any directory where you have write access will do, as long as its filesystem has enough space to store the Whoosh index, like /home/mysite/whoosh_index (straight from the docs). Just make sure the contents aren’t made public by the webserver.

3👍

Any directory you wish. You can use this configuration:

import os, sys
PROJECT_ROOT      = os.path.dirname(__file__)
HAYSTACK_WHOOSH_PATH = os.path.join(PROJECT_ROOT, 'search_index')
👤Yasel

Leave a comment