After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 537899 - i want to sort search results by modification date
i want to sort search results by modification date
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Needle
0.12.x
Other All
: Normal enhancement
: ---
Assigned To: tracker-general
Jamie McCracken
: 573280 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-12 01:57 UTC by Joshua N Pritikin
Modified: 2012-03-06 17:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch which makes tracker-search-tool order by create date (557 bytes, patch)
2010-09-27 14:56 UTC, Anders Semb Hermansen
reviewed Details | Review

Description Joshua N Pritikin 2008-06-12 01:57:40 UTC
Even catfish allows sorting. Is it really true that the standard GUI for tracker doesn't offer the ability to sort search results?
Comment 1 Duncan Lithgow 2010-02-03 08:56:19 UTC
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
Comment 2 Martyn Russell 2010-02-03 08:59:45 UTC
*** Bug 573280 has been marked as a duplicate of this bug. ***
Comment 3 Martyn Russell 2010-03-11 15:22:37 UTC
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 :)
Comment 4 Joshua N Pritikin 2010-03-12 19:32:09 UTC
This isn't a complex feature request. I am asking whether I can sort search results. If I can then close this bug.
Comment 5 Martyn Russell 2010-03-16 14:43:32 UTC
Yes you can (using the command line utilities), the user interface is rather poor for this though unfortunately.
Comment 6 Jamie McCracken 2010-03-16 16:12:20 UTC
I will be adding user specifiable sorting by rank/date and category specific fields to the search tool shortly
Comment 7 Anders Semb Hermansen 2010-09-27 14:56:07 UTC
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.
Comment 8 Anders Semb Hermansen 2010-09-28 13:19:27 UTC
To sort the search result by modification date you can probably use:
ORDER BY DESC(nfo:fileLastModified(?s))
Comment 9 Aleksander Morgado 2011-12-15 10:45:54 UTC
Moving to Needle component, issue applicable to tracker-needle.
Comment 10 Martyn Russell 2012-02-10 16:05:51 UTC
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?
Comment 11 Joshua N Pritikin 2012-02-10 16:14:11 UTC
"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.
Comment 12 Martyn Russell 2012-03-06 17:10:40 UTC
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 13 Martyn Russell 2012-03-06 17:11:11 UTC
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.