aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/haystack_settings.py
blob: 827c2629bed9af2f7d5e9d2b86cdb81aaf40495e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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,
    },
}