whoosh fix

This commit is contained in:
2018-04-01 01:19:36 +02:00
parent 898eb60270
commit a86327b073
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ services:
volumes:
- ".:/app:rw"
- "./data:/data:rw"
- "./whoosh:/whoosh:rw"
command: python manage.py runserver 0.0.0.0:80
env_file: .env-local

View File

@@ -56,7 +56,7 @@ ALDRYN_SEARCH_INDEX_BASE_CLASS = 'project.search.SearchIndex'
HAYSTACK_CUSTOM_HIGHLIGHTER = 'project.search.Highlighter'
HAYSTACK_DEFAULT_OPERATOR = 'OR'
HAYSTACK_INDEX_PATH = os.path.join('/tmp', 'whoosh', 'index')
HAYSTACK_INDEX_PATH = os.path.join('/whoosh', 'index')
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',