|
|
|
|
@ -62,15 +62,17 @@ HAYSTACK_CUSTOM_HIGHLIGHTER = 'project.search.Highlighter'
|
|
|
|
|
HAYSTACK_DEFAULT_OPERATOR = 'OR'
|
|
|
|
|
HAYSTACK_CONNECTIONS = {
|
|
|
|
|
'default': {
|
|
|
|
|
'ENGINE': 'project.filestore.S3WhooshEngine',
|
|
|
|
|
'PATH': os.path.join('/whoosh', 'default'),
|
|
|
|
|
'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchBackend',
|
|
|
|
|
'URL': 'https://wa6vrcqzp9:wdx2qnhlh2@search-sandbox-9002842602.eu-west-1.bonsaisearch.net',
|
|
|
|
|
'INDEX_NAME': 'default',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
for lang_code, lang in LANGUAGES:
|
|
|
|
|
HAYSTACK_CONNECTIONS[lang_code] = {}
|
|
|
|
|
HAYSTACK_CONNECTIONS[lang_code].update({
|
|
|
|
|
'ENGINE': 'project.filestore.S3WhooshEngine',
|
|
|
|
|
'PATH': os.path.join('/whoosh', lang_code),
|
|
|
|
|
'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchBackend',
|
|
|
|
|
'URL': 'https://wa6vrcqzp9:wdx2qnhlh2@search-sandbox-9002842602.eu-west-1.bonsaisearch.net',
|
|
|
|
|
'INDEX_NAME': lang_code,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter', ]
|
|
|
|
|
|