GNOME Bugzilla – Bug 537899
i want to sort search results by modification date
Last modified: 2012-03-06 17:11:11 UTC
Even catfish allows sorting. Is it really true that the standard GUI for tracker doesn't offer the ability to sort search results?
This bug has also been reported downstream in Ubuntu on Launchpad: https://bugs.edge.launchpad.net/ubuntu/+source/tracker/+bug/145367 "tracker - options to organise the search result" I have setup the remote bugwatch in launchpad
*** Bug 573280 has been marked as a duplicate of this bug. ***
Can the reporter of this bug set the _version_ so we can target bugs to work on more easily please. We can also have an idea about if these bugs are likely to be obsolete too. If you don't set the version, we are less likely to look at them. Sorry for the spam, but I don't want to say this 88 times on each bug :)
This isn't a complex feature request. I am asking whether I can sort search results. If I can then close this bug.
Yes you can (using the command line utilities), the user interface is rather poor for this though unfortunately.
I will be adding user specifiable sorting by rank/date and category specific fields to the search tool shortly
Created attachment 171212 [details] [review] Patch which makes tracker-search-tool order by create date My use of tracker requires sorting of create date. This patch does this this for tracker-search-tool. The patch is against 0.8.15 (the version in debian testing). The patch is quick and dirty, a permanent solution should give the user the ability to specify how to order the result in the search tool.
To sort the search result by modification date you can probably use: ORDER BY DESC(nfo:fileLastModified(?s))
Moving to Needle component, issue applicable to tracker-needle.
Easy bug to fix (for permanent sorting), but dynamic sorting requires new queries to the DB. This is on my TODO for the app. For the short term fix, I would need to know which view you want this ordering done in? Just the file view?
"For the short term fix, I would need to know which view you want this ordering done in? Just the file view?" I'm no longer using tracker day-to-day. I have retreated to more primitive tools like find | grep.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. I've fixed this for all searches now and it nicely orders by date or title in most cases. See commit 9dd59d0a2ac1da47954f1cd91e4d741f4d47e2ee. Sorry it took so long to get around to :)
Comment on attachment 171212 [details] [review] Patch which makes tracker-search-tool order by create date This patch was useful but didn't apply. Thank you.