• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4136: Incomplete documentation of %SEARCH "sort" option

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal No Action Required   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

While trying to get a sorted FormattedSearch working across webs, I found the description in TWiki:TWiki/VarSEARCH:

sort: Sort the results of search by the topic names, topic creation time, last modified time, last editor, or named field of TWikiForms. The sorting is done web by web; if you want to sort across webs, create a formatted table and sort it with TablePlugin's initsort. Note that dates are sorted most recent date last (i.e at the bottom of the table).

On my 4.1.1 install, this seems incomplete, because this search is returned sorted across all webs and not web-by-web:

%SEARCH{"%TOPIC%" web="all,-Trash" scope="text" nonoise="on" order="modified" excludetopic="Web*, *Template" reverse="on" limit="15" format="| [[$web.$topic][$topic]] | $web Web | $date |"}%

The only tricky bit is that the limit is still calculated per web, so you end up with lots of results...

-- TWiki:Main/JosMaccabiani - 25 May 2007

I'm sorry, I must be dreaing frown

This result was just luck.

-- JosMaccabiani - 25 May 2007

ItemTemplate
Summary Incomplete documentation of %SEARCH "sort" option
ReportedBy TWiki:Main.JosMaccabiani
Codebase 4.1.1
SVN Range TWiki-4.1.2, Fri, 18 May 2007, build 13796
AppliesTo Engine
Component

Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic revision: r1 - 2007-05-25 - TWikiUserMapping_JosMaccabiani
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback