changeset 1201:f29d1f51dbfa

categories should be indexed in lowercase
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 24 Jul 2006 01:01:52 +0200
parents b953b5ff4877
children 95aeb7dae0c6
files MoinMoin/search/Xapian.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/Xapian.py	Mon Jul 24 00:56:17 2006 +0200
+++ b/MoinMoin/search/Xapian.py	Mon Jul 24 01:01:52 2006 +0200
@@ -330,7 +330,8 @@
         if not prev or prev == 1:
             return []
 
-        return re.findall(r'Category([^\s]+)', body[pos:])
+        return [cat.lower()
+                for cat in re.findall(r'Category([^\s]+)', body[pos:])]
 
     def _index_page(self, writer, page, mode='update'):
         """ Index a page - assumes that the write lock is acquired