40 |
|
|
41 |
remove database and Hyper Estraier index before indexing |
remove database and Hyper Estraier index before indexing |
42 |
|
|
43 |
|
=item --one=database_name |
44 |
|
|
45 |
|
reindex just single database |
46 |
|
|
47 |
=item --config conf/config.yml |
=item --config conf/config.yml |
48 |
|
|
49 |
path to YAML configuration file |
path to YAML configuration file |
58 |
my $clean = 0; |
my $clean = 0; |
59 |
my $config = 'conf/config.yml'; |
my $config = 'conf/config.yml'; |
60 |
my $debug = 0; |
my $debug = 0; |
61 |
|
my $one_db_name; |
62 |
|
|
63 |
GetOptions( |
GetOptions( |
64 |
"limit=i" => \$limit, |
"limit=i" => \$limit, |
65 |
"offset=i" => \$offset, |
"offset=i" => \$offset, |
66 |
"clean" => \$clean, |
"clean" => \$clean, |
67 |
|
"one=s" => \$one_db_name, |
68 |
"config" => \$config, |
"config" => \$config, |
69 |
"debug" => \$debug, |
"debug" => \$debug, |
70 |
); |
); |
79 |
|
|
80 |
while (my ($database, $db_config) = each %{ $config->{databases} }) { |
while (my ($database, $db_config) = each %{ $config->{databases} }) { |
81 |
|
|
82 |
|
next if ($one_db_name && $database !~ m/$one_db_name/i); |
83 |
|
|
84 |
my $log = _new WebPAC::Common()->_get_logger(); |
my $log = _new WebPAC::Common()->_get_logger(); |
85 |
|
|
86 |
# |
# |