208 |
|
|
209 |
my $indexer; |
my $indexer; |
210 |
if ($use_indexer) { |
if ($use_indexer) { |
211 |
my $indexer_config = $config->{$use_indexer} || $log->logdie("can't find '$use_indexer' part in confguration"); |
|
212 |
|
my $cfg_name = $use_indexer; |
213 |
|
$cfg_name =~ s/\-.*$//; |
214 |
|
|
215 |
|
my $indexer_config = $config->{$cfg_name} || $log->logdie("can't find '$cfg_name' part in confguration"); |
216 |
$indexer_config->{database} = $database; |
$indexer_config->{database} = $database; |
217 |
$indexer_config->{clean} = $clean; |
$indexer_config->{clean} = $clean; |
218 |
$indexer_config->{label} = $db_config->{name}; |
$indexer_config->{label} = $db_config->{name}; |
226 |
use WebPAC::Output::Estraier '0.10'; |
use WebPAC::Output::Estraier '0.10'; |
227 |
$indexer = new WebPAC::Output::Estraier( %{ $indexer_config } ); |
$indexer = new WebPAC::Output::Estraier( %{ $indexer_config } ); |
228 |
|
|
229 |
|
} elsif ($use_indexer eq 'hyperestraier-native') { |
230 |
|
|
231 |
|
# open Hyper Estraier database |
232 |
|
use WebPAC::Output::EstraierNative; |
233 |
|
$indexer = new WebPAC::Output::EstraierNative( %{ $indexer_config } ); |
234 |
|
|
235 |
|
$use_indexer = 'hyperestraier'; |
236 |
|
|
237 |
} elsif ($use_indexer eq 'kinosearch') { |
} elsif ($use_indexer eq 'kinosearch') { |
238 |
|
|
239 |
# open KinoSearch |
# open KinoSearch |
347 |
recode => $input->{recode}, |
recode => $input->{recode}, |
348 |
stats => $stats, |
stats => $stats, |
349 |
modify_records => $input->{modify_records}, |
modify_records => $input->{modify_records}, |
350 |
|
modify_file => $input->{modify_file}, |
351 |
); |
); |
352 |
$log->logdie("can't create input using $input_module") unless ($input); |
$log->logdie("can't create input using $input_module") unless ($input); |
353 |
|
|