Tags:
create new tag
view all tags

SID-00521: Top 5 changes across all Webs

Status: Answered Answered TWiki version: 4.3.0 Perl version:
Category: CategorySearch Server OS: Last update: 16 years ago

Hello!

I've played around with the SEARCH function for a while now.

Now I wonder how to search for the top 5 changes across all Webs resulting in a 5 row table.

I know that I can use web="all" and limit="5" but when i do this the result contains 5 rows for each web.

So how can i restrict the result set to only 5 records say e.g

topic web
Topic1 Main
Topic2 Support
Topic3 TWiki
Topic4 Main
Topic5 Main

Is there maybe a way to limit the overall result set instead of limiting the result set for a single web?

Thank you for your help!

-- AndreasHeyden - 2009-09-09

Discussion and Answer

The example at WebChangesForAllWebs probably comes close to what you need.

-- PeterThoeny - 2009-09-09

Thank you Peter for this hint.

But this is what I actually do not want.

You can choose whether to show 20, 100, 200 ... results for each web resulting in a total result set of 60, 200, 400 ... hits.

What I want is a sorted list of the latest 5 modifications in the whole wiki - no matter in which web the modification was.

So why is the "limit" parameter restricted to the hits for one web and not for the overall hits?

-- AndreasHeyden - 2009-09-10

This is not directly supported. TWiki is open source software. I invite you to get involved with the TWiki community. If you participate you can influence the feature enhancements that get accepted. More on that at ReadmeFirst.

As a workaround, you can use SpreadSheetPlugin list functions to manipulate the list of recently changed topics of the webs you are interested in.

Here is an example for the topic changes of Codev, Plugins, Support webs on twiki.org. Write this:

%CALC{$SET(list, )}%
%SEARCH{
  ".*"
  scope="topic"
  type="regex"
  web="Codev, Plugins, Support"
  nonoise="on"
  limit="10"
  order="modified"
  reverse="on"
  format="$percntCALC{$SET(list, $GET(list), $date: [[$web.$topic][$topic]] in <nop>$web web)}$percnt"
}%
%CALC{$LISTJOIN($n, $LISTMAP(| $item |, $LISTTRUNCATE(10, $LISTREVERSE($LISTSORT($GET(list))))))}%

To get this:

2026-02-09 - 04:54: WebStatistics in Support web
2026-02-09 - 04:54: WebStatistics in Plugins web
2026-02-09 - 04:54: WebStatistics in Codev web
2026-01-03 - 11:11: TWikiOrgStatistics in Codev web
2025-12-22 - 22:32: SID-02523 in Support web
2025-11-24 - 05:15: SID-02522 in Support web
2025-08-11 - 17:54: SID-02480 in Support web
2025-02-08 - 00:37: SID-02521 in Support web
2024-12-05 - 06:55: SID-02520 in Support web
2024-10-21 - 04:19: SID-02519 in Support web

-- PeterThoeny - 2009-09-10

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Top 5 changes across all Webs
SupportCategory CategorySearch
TWiki version 4.3.0
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2009-09-10 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.