Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Expired Links in search results

Quote Reply
Expired Links in search results
Hi,

I have expired links showing up in my search results. I am using some Plugins on search hooks so it is possible it is something to do with this - however if I just do a simple search

search.cgi?query=whatever&ExpiryDate-gt=1108227892

I get results where the ExpiryDate is less than this.

If anyone else has some expired links that have isValidated set to 'Yes' - please can you let me know whether they show up in your search results?

Thanks,
Laura.
The UK High Street
Quote Reply
Re: [afinlr] Expired Links in search results In reply to
I think this line might be the problem:

my @bad = (@{$CFG->{search_blocked}}, qw/isValidated ExpiryDate/);

This stops the ExpiryDate from being used to remove expired links from the results, doesn't it?

Edit: No, I've now realised that the limit on the ExpiryDate is set after this line so it can't be that.

Last edited by:

afinlr: Feb 12, 2005, 10:19 AM
Quote Reply
Re: [afinlr] Expired Links in search results In reply to
Well, I think I've fixed this on my site by adding these two lines to the query sub in Search.pm:

$args->{'isValidated'} = 'Yes';
$args->{'ExpiryDate-gt'} = time if $CFG->{payment}->{enabled};

I assume this is a bug.