changeset 1502:f5835c19203a

disable highlight code for stemmed words for now, does not behave well for short words
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Sat, 26 Aug 2006 21:17:22 +0200
parents d1da13700b77
children 632b4aa23c17
files MoinMoin/search/queryparser.py
diffstat 1 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/queryparser.py	Sat Aug 26 21:09:48 2006 +0200
+++ b/MoinMoin/search/queryparser.py	Sat Aug 26 21:17:22 2006 +0200
@@ -291,11 +291,12 @@
                     continue
 
                 post = 0
-                for c in body[match.end():]:
-                    if c in config.chars_lower:
-                        post += 1
-                    else:
-                        break
+                # XXX only do this for stemmd words. how?
+                #for c in body[match.end():]:
+                #    if c in config.chars_lower:
+                #        post += 1
+                #    else:
+                #        break
 
                 matches.append(TextMatch(start=match.start(),
                         end=match.end()+post))
@@ -403,11 +404,12 @@
                     continue
 
                 post = 0
-                for c in page.page_name[match.end():]:
-                    if c in config.chars_lower:
-                        post += 1
-                    else:
-                        break
+                # XXX only do this for stemmd words. how?
+                #for c in page.page_name[match.end():]:
+                #    if c in config.chars_lower:
+                #        post += 1
+                #    else:
+                #        break
 
                 matches.append(TitleMatch(start=match.start(),
                         end=match.end()+post))