X-Git-Url: https://git.mdrn.pl/django-migdal.git/blobdiff_plain/4215649b2a31947ef75b899553577746280b6e8e..7140368dfb24ff4a4e7f7943eb14e44dff7b7321:/migdal/search_indexes.py diff --git a/migdal/search_indexes.py b/migdal/search_indexes.py index 5e3f7d4..79727b1 100644 --- a/migdal/search_indexes.py +++ b/migdal/search_indexes.py @@ -5,7 +5,7 @@ from fnpdjango.utils.models.translation import add_translatable_index, localize_ from migdal.models import Entry -class EntryIndex(indexes.RealTimeSearchIndex, indexes.Indexable): +class EntryIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(null=True, model_attr=localize_field('body', settings.LANGUAGE_CODE), document=True) @@ -15,10 +15,6 @@ class EntryIndex(indexes.RealTimeSearchIndex, indexes.Indexable): def get_model(self): return Entry - def index_queryset(self): - """Used when the entire index for model is updated.""" - return self.get_model().objects.all() - add_translatable_index(EntryIndex, { 'title': indexes.CharField(null=True),