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 320243 - Enhance search box so user can supply boolean values
Enhance search box so user can supply boolean values
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: User Interface
0.9.x
Other All
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 466187 570146 598071 (view as bug list)
Depends on: 508750
Blocks:
 
 
Reported: 2005-10-30 16:13 UTC by Raptor Ramjet
Modified: 2018-05-24 10:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Query parser patch (79.08 KB, patch)
2006-02-17 20:03 UTC, Alex Lancaster
none Details | Review

Description Raptor Ramjet 2005-10-30 16:13:34 UTC
Currently the search facility in rhythmbox is very primitive and acts as a
simple filter.  I would like the ability to perform boolean seaches so that I
could filter for two or more band names or two or more genres, song name in
specific genre etc.

e.g. I could supply values to the search field such as "punk OR classical",
"Killing Joke OR  thee Phantom Creeps" etc. etc.

Alternatively this functionality could be implemented by having three radio
buttons next to the search box with values "Normal", "And" and "Or".  

When the "And" mode was selected the search results would show only items which
contained all the words supplied in the search text box.  

When the "Or" mode was selected the search results would show only items which
contained any of the words supplied in the search text box.  

When the "Normal" mode was selected the search would function as it does now.

Or perhaps the search could becme even more sophisticated via the use of an SQL
like dialect so you could supply "WHERE (Artist='Ceramic Hobs' AND
Genre='Alternative') OR (Genre='Classical')".  Obviously there would have to be
some sort of optional interface available for this as many users would not be
comfortable with writing such queries themselves (but the ability for "power
users" to do so should be allowed)

But some sort of more advanced search would definitely be an improvment.


Other information:
Comment 1 James "Doc" Livingston 2005-10-30 16:41:48 UTC
I remembered there was some work on this several months ago, and after some
searching found the patch at
http://mail.gnome.org/archives/rhythmbox-devel/2005-April/msg00041.html
Comment 2 Alex Lancaster 2006-02-17 20:03:49 UTC
Created attachment 59606 [details] [review]
Query parser patch

Add from mailing list post so it doesn't get lost.
Comment 3 James "Doc" Livingston 2006-06-07 05:42:57 UTC
Marking as enhancement.
Comment 4 Alex Lancaster 2006-08-24 06:39:57 UTC
*** Bug 352637 has been marked as a duplicate of this bug. ***
Comment 5 Colin Macdonald 2006-08-24 06:57:22 UTC
Gah, I even searched because it seemed so obvious.  Not sure how I missed it.  Anyway, sorry for the dup!
Comment 6 Alex Lancaster 2006-08-24 10:59:34 UTC
Not quite a dupe, it seems.  This bug is about the search box, bug #352637 is about the same concept applied to the auto playlists.   Fixing both of these bugs is likely to involve some common code, however, and maybe some of the code in the patch may be useful for both cases.
Comment 7 Christophe Fergeau 2007-08-13 10:01:28 UTC
*** Bug 466187 has been marked as a duplicate of this bug. ***
Comment 8 Bastiaan Wakkie 2008-01-29 14:05:00 UTC
How about using regular expressions (regex)? The patch seems overkill 

So you can filter to find ONLY goa music instead of some heavy metal band named goat on the Jamendo network:

^goa$

Perhaps just rename "this OR that" into [this|that] so you can always apply regex functionality. 
Comment 9 Jonathan Matthew 2008-02-12 13:01:18 UTC
Regular expressions are not user friendly.  If you don't know anything about them, you will be unpleasantly surprised by the results you get once you do anything beyond alphanumeric string searches.

I don't want to have to teach people how they work, or make them read a complex introduction to regular expression syntax.  I'd rather be able to say "it works like google".

Anyway, this patch is way out of date, and if someone were to implement this, using the search extensibility stuff I'm doing in bug 508750 would be a good idea.
Comment 10 Jonathan Matthew 2009-02-01 23:29:43 UTC
*** Bug 570146 has been marked as a duplicate of this bug. ***
Comment 11 Jonathan Matthew 2009-10-11 20:44:10 UTC
*** Bug 598071 has been marked as a duplicate of this bug. ***
Comment 12 Craig Harding 2009-10-20 15:54:52 UTC
Any status on this bug? It's a great idea.
Comment 13 Matt Price 2010-11-02 14:31:02 UTC
+1 on the coolness and importance of this feature.  as a comparison, gogglesmm added this feature within 6 weeks of the initial request; it's been 5 years since the same  feature was requested here...
Comment 14 Christian D 2012-01-29 19:21:34 UTC
Has there been any progress on this feature? I would love to have simple boolean expression support.
If needed, I can try to update the old patch.
Comment 15 Craig Harding 2012-01-29 20:07:29 UTC
The mailing list has a plugin suggested here:

http://mail.gnome.org/archives/rhythmbox-devel/2011-March/msg00005.html

May be try it out and see how it works.
Comment 16 GNOME Infrastructure Team 2018-05-24 10:51:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/81.