If I search for jquery and uncheck "exact search" in resultsdb, I don't find anything. The resulting URL is this: http://taskotron-dev.fedoraproject.org/resultsdb/results?item:like=jquery%
jquery
But if I change it to this, I find packages: http://taskotron-dev.fedoraproject.org/resultsdb/results?item:like=%jquery%
I think most people assume that non-exact search will match any substring, and not just prefix of a word. Is this a bug, or is there any reason to do it this way?
This ticket had assigned some Differential requests: D416
Just an oversight, I guess. Also, take my comment in #462 into consideration, while implementing this.
After discussion with @jskladan, this would make sense: if there's no wildcard in the query, do a substring match if there is a wildcard, use that wildcard instead * support % and * as wildcards
%
*
The implementation: 1. convert * to % in the search string 2. find out if we have % in the search string 3. convert it using jQuery's encodeURI() method http://www.w3schools.com/jsref/jsref_encodeuri.asp 4. perform a search depending on the type found out in step 2)
Closing (D416).
Metadata Update from @kparal: - Issue tagged with: easyfix
Login to comment on this ticket.