[aur-general] The search engine needs improvements
Hi there, So yesterday I was looking if someone had already made a pkgbuild for the rar archiver. I typed 'rar' in the search engine and got 1224 matches. Since rar wasn't at the top of the results, I thought it didn't exist and created it under the name 'rar-official'. And this morning, I receive a message telling me there is already a pkgbuild for rar. *Sigh* Now, I agree that I could have searched a little longer, but that doesn't change the fact that the search engine is too basic and should at least show the exact match in first position. That said, could someone delete the rar-official package please ? Thank you. -- -OD
On Sat, Jan 10, 2009 at 11:38:22AM -0800, Olivier Duclos wrote:
So yesterday I was looking if someone had already made a pkgbuild for the rar archiver. I typed 'rar' in the search engine and got 1224 matches. Since rar wasn't at the top of the results, I thought it didn't exist and created it under the name 'rar-official'.
And this morning, I receive a message telling me there is already a pkgbuild for rar. *Sigh* Now, I agree that I could have searched a little longer, but that doesn't change the fact that the search engine is too basic and should at least show the exact match in first position.
That's not a bad suggestion. Just for future reference: If you look closer you'll notice that search results are arranged alphabetically by package name by default. You'd just need to navigate to the Rs and you should have found rar.
On Sat, Jan 10, 2009 at 9:48 PM, Loui Chang <louipc.ist@gmail.com> wrote:
On Sat, Jan 10, 2009 at 11:38:22AM -0800, Olivier Duclos wrote:
So yesterday I was looking if someone had already made a pkgbuild for the rar archiver. I typed 'rar' in the search engine and got 1224 matches. Since rar wasn't at the top of the results, I thought it didn't exist and created it under the name 'rar-official'.
And this morning, I receive a message telling me there is already a pkgbuild for rar. *Sigh* Now, I agree that I could have searched a little longer, but that doesn't change the fact that the search engine is too basic and should at least show the exact match in first position.
That's not a bad suggestion.
Just for future reference: If you look closer you'll notice that search results are arranged alphabetically by package name by default. You'd just need to navigate to the Rs and you should have found rar.
That is right, but you have to admit it is not so practical, especially for that case of rar. It would be much easier if there was a way to go directly on a given page, like in bbs or in google for example. Or even better, being able to go directly on any page, and also to see the first and last package on that page, like in viewvc : http://repos.archlinux.org/viewvc.cgi/ But then again, rar is probably a corner case. I have personally never ran into that problem in all the searches I did on AUR so it is probably not a big deal :)
Le Sat, 10 Jan 2009 22:55:39 +0100, Xavier <shiningxc@gmail.com> a écrit :
But then again, rar is probably a corner case. I have personally never ran into that problem in all the searches I did on AUR so it is probably not a big deal :)
Ever tried to search vi? :) +1 from Just Another User on Xavier's suggestion to do the same as in viewvc. -- catwell
-----Original Message-----
Date: Sat, 10 Jan 2009 23:09:39 +0100 Subject: Re: [aur-general] The search engine needs improvements From: Pierre Chapuis <catwell@archlinux.us> To: aur-general@archlinux.org
Le Sat, 10 Jan 2009 22:55:39 +0100, Xavier <shiningxc@gmail.com> a écrit :
But then again, rar is probably a corner case. I have personally never ran into that problem in all the searches I did on AUR so it is probably not a big deal :)
Ever tried to search vi? :) +1 from Just Another User on Xavier's suggestion to do the same as in viewvc.
-- catwell
I renamed my package q to q-lang just for thatt reason. Regards Stefan
On Sat, 10 Jan 2009 23:09:39 +0100 Pierre Chapuis <catwell@archlinux.us> wrote:
Le Sat, 10 Jan 2009 22:55:39 +0100, Xavier <shiningxc@gmail.com> a écrit :
But then again, rar is probably a corner case. I have personally never ran into that problem in all the searches I did on AUR so it is probably not a big deal :)
Ever tried to search vi? :) +1 from Just Another User on Xavier's suggestion to do the same as in viewvc.
I think it would be a great new feature, but still I think that if we have an exact match, it should be shown first. I've quickly modified Find.php to do that. At line 261, I changed the if block to : if ($pattern || ($type != 'php' && $type != 'perl')) { while (list(,$entry) = each($data)) { if ($match_function($pattern, $fullpath ? $entry : basename($entry))) { if ($entry == $pattern) { array_unshift($matches, $entry); } else { $matches[] = $entry; } } } } Of course, this only works if $pattern correspond exactly to what the user has typed, which I am absolutely not sure. Anyway, don't you think it's a good idea ?
On 10 Jan 2009, at 3:50 pm -0800, Olivier Duclos wrote:
Le Sat, 10 Jan 2009 22:55:39 +0100, Xavier <shiningxc@gmail.com> a écrit:
But then again, rar is probably a corner case. I have personally never ran into that problem in all the searches I did on AUR so it is probably not a big deal :)
I think it would be a great new feature, but still I think that if we have an exact match, it should be shown first.
I've quickly modified Find.php to do that. At line 261, I changed the if block to :
[SNIP]
Of course, this only works if $pattern correspond exactly to what the user has typed, which I am absolutely not sure. Anyway, don't you think it's a good idea ?
So this is probably a completely impractical idea, but what about adding some sort of rudimentary regexp search? Or at least, say, something that would recognize "^" as the beginning of the package name and "$" as the end? Again, I don't know how well this would work, but it's just a thought. Ivy P.S.: Should this be Cc'd to aur-dev? -- If I Ever Become An Evil Villainess... 27. I will never build only one of anything important. All important systems will have redundant control panels and power supplies. For the same reason I will always carry at least two fully loaded weapons at all times.
On Sat, Jan 10, 2009 at 03:50:45PM -0800, Olivier Duclos wrote:
On Sat, 10 Jan 2009 23:09:39 +0100 Pierre Chapuis <catwell@archlinux.us> wrote:
Le Sat, 10 Jan 2009 22:55:39 +0100, Xavier <shiningxc@gmail.com> a écrit :
But then again, rar is probably a corner case. I have personally never ran into that problem in all the searches I did on AUR so it is probably not a big deal :)
Ever tried to search vi? :) +1 from Just Another User on Xavier's suggestion to do the same as in viewvc.
I think it would be a great new feature, but still I think that if we have an exact match, it should be shown first.
I've quickly modified Find.php to do that. At line 261, I changed the if block to :
if ($pattern || ($type != 'php' && $type != 'perl')) { while (list(,$entry) = each($data)) { if ($match_function($pattern, $fullpath ? $entry : basename($entry))) { if ($entry == $pattern) { array_unshift($matches, $entry); } else { $matches[] = $entry; } } } }
Of course, this only works if $pattern correspond exactly to what the user has typed, which I am absolutely not sure. Anyway, don't you think it's a good idea ?
Unfortunately Find.php has nothing to do with searching for packages on the web. It's really just a copy of http://pear.php.net/package/File_Find.
participants (6)
-
Ivy Foster
-
Loui Chang
-
Olivier Duclos
-
Pierre Chapuis
-
stefan-husmann@t-online.de
-
Xavier