--- trunk2/all2all.pl 2004/07/21 16:18:45 390 +++ trunk2/all2all.pl 2004/09/05 17:54:51 407 @@ -16,7 +16,7 @@ my $webpac = new WebPAC( code_page => 'ISO-8859-2', - limit_mfn => 100, +# limit_mfn => 100, # debug => 1, ) || die; @@ -24,6 +24,7 @@ my $index = new WebPAC::jsFind( index_path => './out/index', + keys => 80, ) || die; $|=1; @@ -62,22 +63,21 @@ print OUT $webpac->output( template => 'html.tt', data => \@ds, + headline => $webpac->{'headline'}, ); close(OUT); } else { print $webpac->output( template => 'text.tt', data => \@ds, + headline => $webpac->{'headline'}, ); } - my $headline; - foreach my $ds (@ds) { - if ($ds->{'tag'} eq 'headline') { - $headline = join(" ",@{$ds->{'display'}}); - last; - } - } + my $headline = $webpac->{'headline'}; + + my $f = $filename; + $f =~ s!out/!!; # save into index foreach my $ds (@ds) { @@ -85,7 +85,7 @@ $index->insert( index_name => $ds->{'tag'}, - path => $filename, + path => $f, headline => $headline, words => join(" ",@{$ds->{'swish'}}) );