changeset 5010:7762acfc26c9

Xapian2009: highlight_re() which returns an empty string was removed, because BaseExpression.highlight_re() returns an emprty string.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 15 Aug 2009 18:58:07 +0200
parents cb9561447c78
children 5db393a37ab5
files MoinMoin/search/queryparser.py
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/queryparser.py	Sat Aug 15 18:56:42 2009 +0200
+++ b/MoinMoin/search/queryparser.py	Sat Aug 15 18:58:07 2009 +0200
@@ -459,10 +459,6 @@
     def costs(self):
         return 100
 
-    def highlight_re(self):
-        return u'' # do not highlight text with stuff from titlesearch,
-                   # was: return u"(%s)" % self._pattern
-
     def pageFilter(self):
         """ Page filter function for single title search """
         def filter(name):
@@ -629,9 +625,6 @@
     def costs(self):
         return 5000 # cheaper than a TextSearch
 
-    def highlight_re(self):
-        return u""
-
     def _get_matches(self, page):
 
         if self.pattern == page.pi['language']:
@@ -724,9 +717,6 @@
     def costs(self):
         return 5000 # cheaper than a TextSearch
 
-    def highlight_re(self):
-        return u""
-
     def _get_matches(self, page):
 
         page_mimetype = u'text/%s' % page.pi['format']
@@ -770,9 +760,6 @@
     def costs(self):
         return 5000 # cheaper than a TextSearch
 
-    def highlight_re(self):
-        return u""
-
     def _get_matches(self, page):
         checks = {'underlay': page.isUnderlayPage,
                   'standard': page.isStandardPage,