changeset 3396:b30370fa2f41

queryparser: kill nasty attempt to detect category searches
author Johannes Berg <johannes AT sipsolutions DOT net>
date Fri, 21 Mar 2008 20:16:32 +0100
parents d5ad5578b2a5
children 2377e18e4a10
files MoinMoin/search/queryparser.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/queryparser.py	Fri Mar 21 20:01:16 2008 +0100
+++ b/MoinMoin/search/queryparser.py	Fri Mar 21 20:16:32 2008 +0100
@@ -1027,15 +1027,6 @@
             elif "domain".startswith(m):
                 domain = True
 
-        # oh, let's better call xapian if we encounter this nasty regexp ;)
-        if not category:
-            cat_re = re.compile(r'----\(-\*\)\(\\r\)\?\\n\)\(\.\*\)Category(.*)\\b', re.U)
-            cat_match = cat_re.search(text)
-            if cat_match:
-                text = cat_match.groups()[0]
-                category = True
-                regex = False
-
         if category:
             obj = CategorySearch(text, use_re=regex, case=case)
         elif mimetype: