From 5873d938a0bb68d6116e843e5e8c20d5a0cf00cf Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Tue, 28 Aug 2012 09:36:55 +0200 Subject: [PATCH 1/1] search fixes --- doc/solr-conf/schema.xml | 6 +++--- migdal/search_indexes.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/solr-conf/schema.xml b/doc/solr-conf/schema.xml index f4d511d..538b9f9 100644 --- a/doc/solr-conf/schema.xml +++ b/doc/solr-conf/schema.xml @@ -160,7 +160,7 @@ - + @@ -170,9 +170,9 @@ - + - + diff --git a/migdal/search_indexes.py b/migdal/search_indexes.py index 63acc1c..2001dab 100644 --- a/migdal/search_indexes.py +++ b/migdal/search_indexes.py @@ -14,7 +14,7 @@ class EntryIndex(indexes.RealTimeSearchIndex, indexes.Indexable): def index_queryset(self): """Used when the entire index for model is updated.""" - return self.get_model().objects.filter(date__lte=datetime.datetime.now()) + return self.get_model().objects.all() # from example: filter(date__lte=datetime.datetime.now()) add_translatable_index(EntryIndex, { -- 2.20.1