Merge pull request #108 from ishitatsuyuki/searchindex

Change the default search index path for whoosh in Django to persistent path `/opt/mailman-web-data` .
This commit is contained in:
Abhilash Raj
2017-07-29 09:25:07 -07:00
committed by GitHub

View File

@@ -298,7 +298,7 @@ COMPRESS_PRECOMPILERS = (
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': os.path.join(BASE_DIR, "fulltext_index"),
'PATH': "/opt/mailman-web-data/fulltext_index",
# You can also use the Xapian engine, it's faster and more accurate,
# but requires another library.
# http://django-haystack.readthedocs.io/en/v2.4.1/installing_search_engines.html#xapian