Bug 916 - Search results shouldn't show * in query
: Search results shouldn't show * in query
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 6.0.0
: All All
: P2 minor (vote)
: ---
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-02 08:22 UTC by Blackketter Dean
Modified: 2008-08-18 10:53 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blackketter Dean 2005-03-02 08:22:02 UTC
When displaying the results of a search from the player UI we see:

Songs Matching: "BE*"

for a search for BE.  The asterisk is confusing and should be omitted.
Comment 1 KDF 2005-03-02 13:10:04 UTC
Given that searching for BE and BE* should, in theory return differing results
(ie: BE returning only matches with the word BE, and BE* returning matches with
words starting with BE) then this seems an approriate output to me.  * is a
standard wildcard character. The other option would be to recognise the * and
change the message to read "Songs beginning with...".  However, that is probably
a lot of effort to achieve the same meaning. 

 Of course, easy for me to say, since I dont find * a cause for confusion.  Can
you explain more why this bothers you?
Comment 2 Dan Sully 2005-03-05 12:12:43 UTC
Comments on this, Dean?
Comment 3 KDF 2005-03-05 12:53:47 UTC
actually...considering there is also the expectation to be able to USE * as a
valid character in filenames and tags, that is another reason it should show in
the query.  But then, we shouldn't be handling it as a wildcard.

Comment 4 KDF 2005-03-10 03:23:33 UTC
oh, I think I see what is going on here.   we used to have this working, but now
that we have the search within words setting, the search term can be *BE* or BE*

this could be useful as an indicator on the search setting.  still, simply
removing the *'s may not be the complete solution.  Maybe a different top line
output for each, but I can't think of anything good that still fits on the scren.
Comment 5 Blackketter Dean 2005-03-11 20:31:10 UTC
My point was that normal people don't know what the * means.  Just strip it from the display.
Comment 6 KDF 2005-03-11 21:34:20 UTC
how does this look?

Index: Slim/Buttons/BrowseID3.pm
===================================================================
--- Slim/Buttons/BrowseID3.pm   (revision 2438)
+++ Slim/Buttons/BrowseID3.pm   (working copy)
@@ -875,7 +875,9 @@
 
 sub searchTerm {
        my $t = shift;
-       $t =~ s/^\*(.+)\*$/$1/;
+
+       #depends on seachinwords setting
+       $t =~ s/^\*?(.+)\*$/$1/;
        return $t;
 }
Comment 7 KDF 2005-03-12 23:11:07 UTC
committed r2460