-- add multiple databases
++ add multiple databases
++ support multiple inputs to single database [2.00_1]
- delete unused files in database directories
- scoring for various fields in input/*.xml
- write pure perl Search::HyperEstraier
=head1 VERSION
-Version 0.06
+Version 0.07
=cut
-our $VERSION = '0.06';
+our $VERSION = '0.07';
=head1 SYNOPSIS
$log->logconfess("can't find database name") unless ($database);
- my $cache_file = "$cache_path/$prefix#$id";
+ my $cache_file = "$cache_path/$database/$prefix#$id";
$cache_file =~ s#//#/#go;
open(my $fh, '>>', '/tmp/foo');
-print $fh "LOAD $cache_path / $prefix # $id ==> $cache_file\n";
+print $fh "LOAD $cache_path / $database / $prefix # $id ==> $cache_file\n";
close($fh);
$log->debug("using cache_file $cache_file");
while (my ($database, $db_config) = each %{ $config->{databases} }) {
- my $type = lc($db_config->{input}->{type});
-
- die "I know only how to handle input type isis, not '$type'!\n" unless ($type eq 'isis');
-
my $abs_path = abs_path($0);
$abs_path =~ s#/[^/]*$#/#;
- my $lookup = new WebPAC::Lookup(
- lookup_file => $db_config->{input}->{lookup},
- );
-
my $db_path = $config->{webpac}->{db_path} . '/' . $database;
-
- my $log = $lookup->_get_logger;
- $log->info("working on $database in $db_path");
-
my $db = new WebPAC::Store(
path => $db_path,
database => $database,
debug => 1,
);
+ my $log = $db->_get_logger;
+ $log->info("working on $database in $db_path");
+
my $est_config = $config->{hyperestraier} || $log->logdie("can't find 'hyperestraier' part in confguration");
$est_config->{database} = $database;
}
foreach my $input (@inputs) {
+
+ my $type = lc($input->{type});
+
+ die "I know only how to handle input type isis, not '$type'!\n" unless ($type eq 'isis');
+
+ my $lookup = new WebPAC::Lookup(
+ lookup_file => $input->{lookup},
+ );
+
$log->info("working on input $input->{path} [$input->{type}]");
my $isis = new WebPAC::Input::ISIS(