changeset 1450:522339274505

temporarily disable detection of invalid queries
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 21 Aug 2006 19:27:33 +0200
parents e219092e1a0d
children ad6bfa51d16c
files MoinMoin/action/fullsearch.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/fullsearch.py	Mon Aug 21 19:03:20 2006 +0200
+++ b/MoinMoin/action/fullsearch.py	Mon Aug 21 19:27:33 2006 +0200
@@ -127,15 +127,15 @@
 
     # search the pages
     from MoinMoin.search import searchPages, QueryParser
-    try:
-        query = QueryParser(case=case, regex=regex,
+    #try:
+    query = QueryParser(case=case, regex=regex,
                 titlesearch=titlesearch).parse_query(needle)
-        results = searchPages(request, query, sort, mtime, historysearch)
-    except ValueError:
-        err = _('Your search query {{{"%s"}}} is invalid. Please refer to '
-                'HelpOnSearching for more information.') % needle
-        Page(request, pagename).send_page(request, msg=err)
-        return
+    results = searchPages(request, query, sort, mtime, historysearch)
+    #except ValueError:
+    #    err = _('Your search query {{{"%s"}}} is invalid. Please refer to '
+    #            'HelpOnSearching for more information.') % needle
+    #    Page(request, pagename).send_page(request, msg=err)
+    #    return
 
     # directly show a single hit
     # XXX won't work with attachment search