diff --git a/settings.py b/settings.py index a037eef..cd1b93c 100644 --- a/settings.py +++ b/settings.py @@ -168,6 +168,7 @@ HAYSTACK_CONNECTIONS = { 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine', }, } +HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' # Account settings LOGIN_REDIRECT_URL = '/' diff --git a/snipts/search_indexes.py b/snipts/search_indexes.py index 8f7f1e1..270e301 100644 --- a/snipts/search_indexes.py +++ b/snipts/search_indexes.py @@ -3,7 +3,7 @@ from haystack import indexes from snipts.models import Snipt -class SniptIndex(indexes.RealtimeSignalProcessor, indexes.Indexable): +class SniptIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) author = indexes.CharField(model_attr='user') pub_date = indexes.DateTimeField(model_attr='created')