SID-02411: Recent activity of a recent user
| Status: |
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
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.