Page 1 of 1

Search bug: entries not appearing in results

Posted: Sun Jan 04, 2015 12:38 pm
by Specular
Here's a strange one. I've noticed when using a custom keyword search from Firefox that TPFC searches sometimes result in no results – even for entries that do exist. This has often made me think some apps aren't in the DB only to discover later they are, or by seeing their forum thread.

Paste this URL into your browser or click this link to reproduce:

Code: Select all

http://www.portablefreeware.com/index.php?q=aegisub&so=r&s=5&rt=n&m=Search
Whereas this alternate link without the additional parameters is not affected. However my keyword doesn't include the additional parameters in the code/link above:

Code: Select all

http://www.portablefreeware.com/index.php?q=%s
So it seems sometimes the site uses it other times not.

Re: Search bug: entries not appearing in results

Posted: Sun Jan 04, 2015 1:09 pm
by Midas
Weird. Indeed it seems that with additional parameters (this part of the search URL: &so=r&s=5&rt=n&m=Search) the database doesn't get searched... Beats me. :?

Re: Search bug: entries not appearing in results

Posted: Mon Jan 05, 2015 12:04 am
by SYSTEM
The cause is the rt=n parameter. It limits the results to new entries (i.e. programs that haven't been updated). If you change it to rt=r or change the Results type to New + Updates in the search field, Aegisub will appear.
Specular wrote:However my keyword doesn't include the additional parameters in the code/link above:

Code: Select all

http://www.portablefreeware.com/index.php?q=%s
So it seems sometimes the site uses it other times not.
Strange.

Re: Search bug: entries not appearing in results

Posted: Mon Jan 05, 2015 5:42 am
by Specular
Okay, I can reproduce it now and this is the outline of how it happens.

1. Click this link. This is the URL my keyword produces, but as nothing matches the query there are no results.

2. While on that same page rename the query in the center search box (not the top right) to 'aegisub'.

3. Watch as the URL adds the additional parameters that prevent the database entry from being seen:

Code: Select all

http://www.portablefreeware.com/index.php?q=aegisub&so=r&s=5&rt=n&m=Search
Notice that if you navigate back to the initial result and search from the top-right field it doesn't add these parameters (only &m= whatever that does).

Re: Search bug: entries not appearing in results

Posted: Mon Jan 05, 2015 6:24 am
by SYSTEM
Specular wrote:Okay, I can reproduce it now and this is the outline of how it happens.

1. Click this link. This is the URL my keyword produces, but as nothing matches the query there are no results.

2. While on that same page rename the query in the center search box (not the top right) to 'aegisub'.

3. Watch as the URL adds the additional parameters that prevent the database entry from being seen:

Code: Select all

http://www.portablefreeware.com/index.php?q=aegisub&so=r&s=5&rt=n&m=Search
Notice that if you navigate back to the initial result and search from the top-right field it doesn't add these parameters (only &m= whatever that does).
Ah, I see. Apparently the center search box defaults to "New only" when it appears.

Re: Search bug: entries not appearing in results

Posted: Tue Jan 06, 2015 4:27 pm
by Andrew Lee
Ah, I see. Apparently the center search box defaults to "New only" when it appears.
This is definitely a bug. I will fix it as soon as possible. Thanks for bringing it up!

EDIT: Now fixed