25 |
|
|
26 |
my $index = new WebPAC::jsFind( |
my $index = new WebPAC::jsFind( |
27 |
index_path => './out/index', |
index_path => './out/index', |
28 |
keys => 80, |
keys => 10, |
29 |
) || die; |
) || die; |
30 |
|
|
31 |
my $thes; |
my $thes; |
99 |
|
|
100 |
$thes->{$ds->{'tag'}} ||= new WebPAC::Index; |
$thes->{$ds->{'tag'}} ||= new WebPAC::Index; |
101 |
|
|
102 |
$thes->{$ds->{'tag'}}->insert( |
foreach my $h (@{$ds->{'index'}}) { |
103 |
path => $f, |
$thes->{$ds->{'tag'}}->insert( |
104 |
headline => $headline, |
path => $f, |
105 |
); |
headline => $h, |
106 |
|
); |
107 |
|
} |
108 |
} |
} |
109 |
|
|
110 |
# print Dumper(\@ds); |
# print Dumper(\@ds); |
119 |
next; |
next; |
120 |
} |
} |
121 |
|
|
122 |
$log->debug("saving sorted index $t [".scalar(@e)." elements]"); |
my $file = "./out/bfilter/$t.txt"; |
123 |
|
$log->info("saving sorted index $t to '$file' [".scalar(@e)." elements]"); |
124 |
|
|
125 |
$webpac->output_file( |
$webpac->output_file( |
126 |
file => "./out/thes_$t.html", |
file => $file, |
127 |
template => 'index.tt', |
template => 'index.tt', |
128 |
data => \@e, |
data => \@e, |
129 |
index_name => $t, |
index_name => $t, |