fix - Search does only returns recent results

This commit is contained in:
Roy Johnson 2006-08-09 12:53:24 +00:00
parent b4102862d4
commit b7749551f8
2 changed files with 3 additions and 2 deletions

View file

@ -132,7 +132,7 @@ sub searchSite {
my $keywords = shift;
my $t = [Time::HiRes::gettimeofday()];
my $search = WebGUI::Search->new($session, 0);
$search->search({keywords=>$keywords});
$search->search({keywords=>$keywords, creationDate=>{}}); # make Search.pm include content from all dates by default
my $rs = $search->getResultSet;
while (my $data = $rs->hashRef) {
print $data->{assetId}."\t".$data->{title}."\n";