Add a parameter to FullSearch so retrieved links do not include highlighting
Retrieving a list of links according to some (possibly complex) criteria can sometimes result in retrieved links with some very intrusive highlighting. It would be helpful in cases where the issuer of the FullSearch could suppress the inclusion of highlighting instructions on the links, so that the identified pages could simply be displayed, without any highlighting.
For a more nuanced (but complex) approach, perhaps a modifier could be used to suppress hightlighting.
Implemented in http://hg.moinmo.in/moin/1.9/rev/a89531afebe8 -- EugeneSyromyatnikov 2012-05-21 00:09:50
I think it would be more convenient if every page with highlighting had a header on it with a link to the "non-highlighted" version of the page, perhaps similar to the "Thank you for your changes" header that appears on a page that you just modified.
Implemented in http://hg.moinmo.in/moin/1.9/rev/be11f1e64e73 -- EugeneSyromyatnikov 2012-05-21 00:09:50
Remarks
We are using FullSearch macros extensively as a navigational / organizational aid rather then the network of classic inline links, but the problem is with this scenario that most of our users will see those lengthy URLs, which is not user friendly at all. -- JózsefJároli 2006-05-22 13:14:04
I would just like to add my support for this feature. We are using FullSearchCached to get categories for navigation, and having the Category at the bottom highlighted can be confusing, and is completely unnecessary. Something like
<<FullSearchCached(category:CategoryName, highlight=off)>>
would be ideal, with perhaps an option in the wikiconfig.py to change the default behaviour.
-- PaulWarren 2008-12-12
Implemented in http://hg.moinmo.in/moin/1.9/rev/8e5559a0a08b -- EugeneSyromyatnikov 2012-05-21 00:09:50
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.
-- RudolfReuter 2010-09-20 12:59:25
Updated -- RudolfReuter 2012-02-15 06:04:08