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)
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),