|
|
|
|
@ -63,14 +63,14 @@ HAYSTACK_DEFAULT_OPERATOR = 'OR'
|
|
|
|
|
HAYSTACK_CONNECTIONS = {
|
|
|
|
|
'default': {
|
|
|
|
|
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
|
|
|
|
|
'PATH': os.path.join('/tmp/whoosh', 'default'),
|
|
|
|
|
'PATH': os.path.join('/whoosh', 'default'),
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
for lang_code, lang in LANGUAGES:
|
|
|
|
|
HAYSTACK_CONNECTIONS[lang_code] = {}
|
|
|
|
|
HAYSTACK_CONNECTIONS[lang_code].update({
|
|
|
|
|
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
|
|
|
|
|
'PATH': os.path.join('/tmp/whoosh', lang_code),
|
|
|
|
|
'PATH': os.path.join('/whoosh', lang_code),
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter', ]
|
|
|
|
|
|