From 2910709b1c3b5e2b7d526323f8d8ed03b13895e5 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 16 Mar 2012 13:48:28 +0100 Subject: [PATCH] exclude sets from tags indexed --- apps/search/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/search/index.py b/apps/search/index.py index dc33575bc..2a5c14f22 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -214,7 +214,7 @@ class Index(BaseIndex): q = NumericRangeQuery.newIntRange("tag_id", 0, Integer.MAX_VALUE, True, True) self.index.deleteDocuments(q) - for tag in catalogue.models.Tag.objects.all(): + for tag in catalogue.models.Tag.objects.exclude(category='set'): doc = Document() doc.add(NumericField("tag_id", Field.Store.YES, True).setIntValue(int(tag.id))) doc.add(Field("tag_name", tag.name, Field.Store.NO, Field.Index.ANALYZED)) -- 2.20.1