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 454528 - Add support for rank
Add support for rank
Status: RESOLVED OBSOLETE
Product: tracker
Classification: Core
Component: Needle
0.12.x
Other All
: Normal enhancement
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks: 699860
 
 
Reported: 2007-07-07 10:32 UTC by Luca Ferretti
Modified: 2021-05-26 22:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Ferretti 2007-07-07 10:32:57 UTC
The shared metadata spec[1] from freedesktop.org defines a File.Rank (section Generic, type integer , writeable) described as "Editable file rank for grading favourites. Value should be in the range 1..10"

If I'm right tracked supports it, but there is no way to set/get it in search tool

Also a Gtk+ widget to set/get it could be interesting.

[1] http://freedesktop.org/wiki/Specifications/shared-filemetadata-spec
Comment 2 Luca Ferretti 2007-07-07 12:03:18 UTC
A bug against GTK+ requesting a GtkIndicatorRating widget as part of rework or GttProgress widget.

http://bugs.gnome.org/319608 
Comment 3 Martyn Russell 2010-03-11 15:21:04 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 Martyn Russell 2010-03-16 14:47:15 UTC
We now support rank in the ontology, it is not displayed in t-s-t however.
Comment 5 Aleksander Morgado 2011-12-15 10:44:16 UTC
(In reply to comment #4)
> We now support rank in the ontology, it is not displayed in t-s-t however.

I guess this is now applicable to tracker-needle as well, changing component.
Comment 6 Martyn Russell 2013-05-08 12:43:14 UTC
This should be easy to add.

We just need a patch in the src/tracker-needle/tracker-query.vala to add "ORDER BY ASC(fts:rank(?urn))" or something like that. We have to consider that all the current sorting uses fields which are unrelated to FTS and that if we add this we can only use it for FTS specific searches. So some additional logic needed there. But there is already something like that for the existing querying in that file.
Comment 7 Sam Thursfield 2021-05-26 22:25:05 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/tracker/-/issues/

Thank you for your understanding and your help.