• This topic is now cached (refresh)


FORMATTED SEARCH TESTS





  • other samples:
TEST1:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(deadline), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="10" }%

TEST2:
%CALC{$SET(weekold, $TIMEADD($TIME(), -7, day))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(weekold), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="100" }% 

TEST3:
%SEARCH{ "\.*" scope="topic" web="CMS" type="regex" date="P10h/$now" nosearch="on" nototal="on" order="modified" reverse="on"  format="| [[$topic]] | $wikiusername  | $createwikiusername | $date | $rev |" limit="all" }%

TEST4:
   * if the page is more recent than 10-hour:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(deadline), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="10" }%

TEST5:
   * if the pages is older than 10-hour:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) > $GET(deadline), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="10" }%

TEST6:
%SEARCH{"META:TOPICINFO.*?date" web="Sandbox" type="regex" header="| *Topic* | *Last Modified * | *Modified By* | *Created By* | *Updated* | *Revised* |" format="$percntCALC{$IF($TIME(01 Jan 2009) > $TIME($date), | Sandbox.$topic | $date | $wikiname | $wikiusername | $date | $rev |,)}$percnt" nonoise="on" order="modified" limit="5" }%

TEST7:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{"META:TOPICINFO.*?date" web="CMS" type="regex" header="| *Topic* | *Last Modified * | *Modified By* | *Created By* | *Updated* | *Revised* |" format="$percntCALC{$IF($GET(deadline) > $TIME($date), | Sandbox.$topic | $date | $wikiname | $wikiusername | $date | $rev |,)}$percnt" nonoise="on" order="modified" limit="5" }%

TWikiUsers
%RESPONSIBLE% AreshVedaee

-- AreshVedaee - 12 Jun 2009

Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r14 - 2020-08-19 - TWikiAdminUser
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox/SandboxArchive All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback