X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/531ad4bc4cab82f8c5dc3569c3835328df892a83..28a137e0527d8f3b7bfb0e5faa12aae7df409272:/apps/search/index.py diff --git a/apps/search/index.py b/apps/search/index.py index 9f832e590..557f4045c 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -201,7 +201,6 @@ class Index(SolrIndex): "is_pdcounter": False, "uid": "tag%d" % tag.id } - print "ADD 1 %s" % doc self.index.add(doc) def create_book_doc(self, book): @@ -649,7 +648,6 @@ class SearchResult(object): except catalogue.models.Fragment.DoesNotExist: # stale index continue - print f # Figure out if we were searching for a token matching some word in theme name. themes = frag.tags.filter(category='theme') themes_hit = set() @@ -954,7 +952,6 @@ class Search(SolrIndex): continue text = snippets.get((int(position), int(length))) - print "== %s -- %s ==" % (query, text) snip = self.index.highlight(text=text, field=field, q=query) snips[idx] = snip if snip: @@ -971,6 +968,7 @@ class Search(SolrIndex): snips = map(lambda s: s and s.replace("/\n", "\n"), snips) searchresult.snippets = snips + return snips def hint_tags(self, query, pdcounter=True, prefix=True):