fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa684e7
)
exclude sets from tags indexed
author
Marcin Koziej
<marcin@lolownia.org>
Fri, 16 Mar 2012 12:48:28 +0000
(13:48 +0100)
committer
Marcin Koziej
<marcin@lolownia.org>
Fri, 16 Mar 2012 12:49:07 +0000
(13:49 +0100)
apps/search/index.py
patch
|
blob
|
history
diff --git
a/apps/search/index.py
b/apps/search/index.py
index
dc33575
..
2a5c14f
100644
(file)
--- 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))