X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/35b64fd8bec183054b63234aebf8782b87cf5cc5..2b69e7ea53189894ced2c6421d9c6842989d38c2:/apps/search/custom.py?ds=inline

diff --git a/apps/search/custom.py b/apps/search/custom.py
index e6f559b62..dcb55eb44 100644
--- a/apps/search/custom.py
+++ b/apps/search/custom.py
@@ -147,7 +147,7 @@ class CustomSolrInterface(sunburnt.SolrInterface):
                 break
             start -= 1
 
-        while end < totlen:
+        while end < totlen - 1:
             if is_boundary(text[end + 1]):
                 break
             end += 1
@@ -179,7 +179,6 @@ class CustomSolrInterface(sunburnt.SolrInterface):
 
         snip = text[start:end]
         matches.sort(lambda a, b: cmp(b[0], a[0]))
-        print matches
 
         for (s, e) in matches:
             off = - start