diff options
Diffstat (limited to '97suifangqa/haystack_settings.py')
-rw-r--r-- | 97suifangqa/haystack_settings.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/97suifangqa/haystack_settings.py b/97suifangqa/haystack_settings.py new file mode 100644 index 0000000..827c262 --- /dev/null +++ b/97suifangqa/haystack_settings.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' + +HAYSTACK_CONNECTIONS = { + 'default': { + #'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', + #'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'), + 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', + 'URL': 'http://127.0.0.1:8983/solr', + 'TIMEOUT': 60*5, + 'INCLUDE_SPELLING': True, + 'BATCH_SIZE': 100, + }, +} + |