changeset 3569:7593b6b4590c

Xapian indexing: index CategoryFoo correctly as CategoryFoo, not Foo (only works for default category regex (english), needs more work)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 08 May 2008 13:17:52 +0200
parents 6fe1ea4d9d1a
children eb5c6f776bce
files MoinMoin/search/Xapian.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/Xapian.py	Thu May 08 10:10:12 2008 +0200
+++ b/MoinMoin/search/Xapian.py	Thu May 08 13:17:52 2008 +0200
@@ -438,7 +438,8 @@
             return []
 
         return [cat.lower()
-                for cat in re.findall(r'Category([^\s]+)', body[pos:])]
+                for cat in re.findall(r'Category[^\s]+', body[pos:])] # XXX needs i18n / configurability
+                # we have page_category_regex there, but it doesn't match the complete category tag
 
     def _get_domains(self, page):
         """ Returns a generator with all the domains the page belongs to