CirrusSearch indexes the creation & last edit timestamp, it could be interesting to introduce a keyword to filter search results based on these fields (see T392283#11101044 for a possible use-case in a product features).
The exact nature of the filter is yet to be defined but could resemble something like this:
lasteditdate:<now-1d: filter pages edited before yesterday
lasteditdate:>now-1d: filter pages edited in the last 24hours
lasteditdate:<2024-01-01: filter pages edited before 2024
A similar keyword like creationdate should be added as well.
Things to consider:
- time format
- granularity and no comparison: should we support lasteditdate:2024 and possibly transform it to a range like: 2024-01-01T00:00:00 <= date < 2025-01-01T00:00:00?
- timezone: should we always use UTC? or should we allow users to use their own Time offset (found in their user preferences)? If yes how?
- period format: should we support all of https://www.php.net/manual/en/dateinterval.format.php ?
AC:
- CirrusSearch is able to filter pages based on their last edit timestamp and creation date
- The new syntax is documented