Tags:
create new tag
view all tags

SID-02411: Recent activity of a recent user

Status: Answered Answered TWiki version: 6.0.1 Perl version:
Category: CategorySearch Server OS: Last update: 6 years ago

I want to do something similar to Support.SID-01723, but I want to limit the search to a time interval. I've tried:

%SEARCH{ "info.author='JoeyDumont' AND info.date='P2w/$now'" type="query" web="all"}%

but this returns nothing, even though I did modify things in the last two weeks. Is that the proper syntax? Even chaning the date field to info.date='2018' does not yield any results.

-- Joey Dumont - 2019-07-20

Discussion and Answer

It seems that the query in a query search doesn't handle time intervals as you'd expect. However, it works just fine if you use the traditional date parameter of search. The following works for me:

%SEARCH{ "info.author='JoeyDumont'" type="query" web="all" date="P2w/$now"}%

-- Harald Jörg - 2019-07-20

Oh, thanks! I thought I tried that, but I probably only tried info.date and not straight date . Thanks!

-- Joey Dumont - 2019-07-22

      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 Recent activity of a recent user
SupportCategory CategorySearch
TWiki version 6.0.1
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2019-07-22 - JoeyDumont
 
  • 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.