Off by one error
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 2 Nov 2012 13:08:54 +0000 (14:08 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 2 Nov 2012 13:08:54 +0000 (14:08 +0100)
apps/search/custom.py

index e6f559b..924a10e 100644 (file)
@@ -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