X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/919a5d574aac85d55b6cfd17f0a81dd5ff56265a..b80f646690239d9a90d708d57780f328328b26d5:/apps/search/index.py diff --git a/apps/search/index.py b/apps/search/index.py index a3a62de18..7fffb57dc 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -639,10 +639,12 @@ class Hint(object): return None def part_filter(self): + fs = [] if self.part_tags: - return self.tag_filter(self.part_tags, field='themes') - else: - return None + fs.append(self.tag_filter(self.part_tags, field='themes')) + if self.book is not None: + bf = TermsFilter() + bf.addTerm # TODO def should_search_for_book(self): return self.book is None