Because it is the only way of navigation in moinmoin (I am missing wistful a page tree), I am using a lot categories.

Now when my pages got cited like http://www.rudiswiki.de/wiki9/ActiveSyncZarafa?highlight=%28\bCategoryAndroid\b%29 it does not look very nice.

The other effect is, that the page load time is much longer. At the previous mentioned page the load time with highlight is about 7 s, without highligh it is only 0.5 s.

Please have a look at http://www.rudiswiki.de/wiki9/ActiveSyncZarafa , the last line shows the load time.

After some digging in the code I found a solution (moin 1.8.8, path: MoinMoin/search/results.py) with the following patch:

   1 --- results.py.org      2010-09-20 13:30:58.000000000 +0200
   2 +++ results.py  2010-09-20 14:24:55.785187489 +0200
   3 @@ -758,14 +758,14 @@
   4  
   5      def querystring(self, querydict=None):
   6          """ Return query string, used in the page link
   7 -
   8 +            - Do not highlight Category searches 2010-09-20 RudolfReuter
   9          @keyword querydict: use these parameters (default: None)
  10          """
  11          if querydict is None:
  12              querydict = {}
  13          if 'action' not in querydict or querydict['action'] == 'AttachFile':
  14              highlight = self.query.highlight_re()
  15 -            if highlight:
  16 +            if highlight and (highlight.find('Category') < 0): # 2010-09-20 RudolfReuter
  17                  querydict.update({'highlight': highlight})
  18          querystr = wikiutil.makeQueryString(querydict)
  19          return querystr

I just do not know if it does not have any unwanted side effects. It would be nice if a member of the moinmoin team could have a look on that.

In moinmoin version 1.9.3 MoinMoin/search/results.py looks very similar.

List of pages in this Category:

-- RudolfReuter 2012-02-15 06:00:38


Go back to CategoryMoinMaintenance or FrontPage ; KontaktEmail (ContactEmail)

MoinSearchCategory (last edited 2014-06-21 17:15:28 by RudolfReuter)