Question
I have yet another type of search that I need to do, and I cannot find a way to perform it with the current %SEARCH% capability.
Specifically, I need to search for all topics that have not been modified for N days. (I need to list topics that have not received any attention lately. This is distinct from them reaching their due date.)
It is easy to list all topics from oldest to newest, but I need a way to specify a cut-off value. This is something like searching with limit="nn", but data based instead of an absolute count.
In the more general case, it would seem like a powerful tool if %SEARCH%{...} could select a (numerical or date) range of data rather than just regular expressions.
I have a sneaking feeling that there is something completely obvious that I am missing. Is there a trick that I do not know about?
- TWiki version: Beta 14 Apr 2002
- Web server: Apache 1.3
- Server OS: Solaris 2.8
- Web browser: IE
- Client OS: Windows 2000
--
DaveBoulton - 30 Jul 2002
Answer
You currently cannot limit the number of topics shown other then by a number of topics.
<brainstorming>
It would be possible to enhance TWiki::Search to understand something like
limit=">9 days" and
limit="<9 days"
</brainstorming>
Alternatively you could create a Plugin that searches for those files, e.g. with syntax
SEARCHOLDTOPICS{"9"}%
--
PeterThoeny - 01 Aug 2002