Subject: | recent entries aren't recent |
It seems that the "recent" config option is for limiting the number of /recent/ entries shown on the main page when no other parameters are given. The Collector's collect_current method passes "recent" as the "limit" to the DataSource's search method.
The base DataSource search method (which, I know, is not advertised to be awesome) finds all matching documents (which, for the main page, is everything) and returns the first "recent" number of them. Since the documents are unordered when this is done, it is not guaranteed that the returned documents are the most recent documents.
I fixed this in my own toy collector/source by sorting all_documents before mapping the search, and then not afterwards.