whoosh fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user