Rhythmbox: Making Searches More Accurate

About a week ago, I came across a minor annoyance in Rhythmbox that I personally classify as a bug..despite the fact that its actually more of an unimplemented feature.

The searching problem..

The problem was that, when I quickly search for an artist or album containing an ampersand (the & character), but I use the word “and” instead without noticing, my search turns up empty. Obviously this is a trivial problem and I’m sure its actually quite common.

The search problem is usually easy enough to spot and fix, but its an unnecessary and extra step. Correcting it would be a slight push for Rhythmbox towards the “bit more friendly” side.

I’ve been a Linux user for nearly five years now and a Linux enthusiast for nearly three, so I’m beginning to feel comfortable with providing patches to fix problems like these. I did this with the Microsoft LifeCam VX-1000 patch a short while back and it appears to have benefited more people already than I ever expected.

Taking this problem to the Rhythmbox mailing list for thoughts and suggestions, I was pleased to see a couple of responses in favor of my idea for solving this problem.

I had originally suggested that Rhythmbox simply treat search words “&” equal to “and” as well as other similar examples. This seemed to be a good starting solution, but then the topic of search engines was brought up. When you search for something on Google, these articles (words such as “and”, “the”, “a”, etc) are usually dropped or removed from the search giving it more accurate results.

This would be a much easier approach to fixing these kinds of search problems in Rhythmbox than making (for example) “and” equal to “&”. This would also provide a slight performance improvement since it would be stripping out some of the unhelpful search terms.

I’m hoping to find time soon (when I return home from a short break) to write a patch that will make use of the local system language and drop search terms accordingly to improve the success rate of searches for Rhythmbox users, but I’m interested in finding out what other media players do first.

With a group such as “Angels & Airwaves”, what happens in other media players for Linux, Windows and Mac when you search with the string “Angels and Airwaves”? Are the expected results returned or does the “and” search word throw off the results?

Let me know in the comments if you can! I’m interested in implementing this in the best way possible and following other good media player examples is usually much better than inventing my own implementation.

Leave a Reply