Lines 34-39
B<rebuild_elasticsearch.pl>
Link Here
|
34 |
[B<--desc>] |
34 |
[B<--desc>] |
35 |
[B<-bn|--bnumber>] |
35 |
[B<-bn|--bnumber>] |
36 |
[B<-ai|--authid>] |
36 |
[B<-ai|--authid>] |
|
|
37 |
[B<-w|--where SQL>] |
37 |
[B<-p|--processes>] |
38 |
[B<-p|--processes>] |
38 |
[B<-v|--verbose>] |
39 |
[B<-v|--verbose>] |
39 |
[B<-h|--help>] |
40 |
[B<-h|--help>] |
Lines 87-92
repeated.
Link Here
|
87 |
Only index the supplied authority id, mostly for testing purposes. May be |
88 |
Only index the supplied authority id, mostly for testing purposes. May be |
88 |
repeated. |
89 |
repeated. |
89 |
|
90 |
|
|
|
91 |
=item B<-w|--where> |
92 |
|
93 |
Pass some additional SQL to limit the records to be indexed. |
94 |
|
90 |
=item B<-p|--processes> |
95 |
=item B<-p|--processes> |
91 |
|
96 |
|
92 |
Number of processes to use for indexing. This can be used to do more indexing |
97 |
Number of processes to use for indexing. This can be used to do more indexing |
Lines 128-134
my $verbose = 0;
Link Here
|
128 |
my $commit = 5000; |
133 |
my $commit = 5000; |
129 |
my ($delete, $reset, $help, $man, $processes); |
134 |
my ($delete, $reset, $help, $man, $processes); |
130 |
my ($index_biblios, $index_authorities); |
135 |
my ($index_biblios, $index_authorities); |
131 |
my (@biblionumbers,@authids); |
136 |
my (@biblionumbers,@authids,$where); |
132 |
my $desc; |
137 |
my $desc; |
133 |
|
138 |
|
134 |
$|=1; # flushes output |
139 |
$|=1; # flushes output |
Lines 142-147
GetOptions(
Link Here
|
142 |
'desc' => \$desc, |
147 |
'desc' => \$desc, |
143 |
'bn|bnumber=i' => \@biblionumbers, |
148 |
'bn|bnumber=i' => \@biblionumbers, |
144 |
'ai|authid=i' => \@authids, |
149 |
'ai|authid=i' => \@authids, |
|
|
150 |
'w|where=s' => \$where, |
145 |
'p|processes=i' => \$processes, |
151 |
'p|processes=i' => \$processes, |
146 |
'v|verbose+' => \$verbose, |
152 |
'v|verbose+' => \$verbose, |
147 |
'h|help' => \$help, |
153 |
'h|help' => \$help, |
Lines 197-202
if( $desc ){
Link Here
|
197 |
$iterator_options{desc} = 1; |
203 |
$iterator_options{desc} = 1; |
198 |
} |
204 |
} |
199 |
|
205 |
|
|
|
206 |
if ($where) { |
207 |
$iterator_options{where} = $where; |
208 |
} |
209 |
|
200 |
my $next; |
210 |
my $next; |
201 |
if ($index_biblios) { |
211 |
if ($index_biblios) { |
202 |
_log(1, "Indexing biblios\n"); |
212 |
_log(1, "Indexing biblios\n"); |
203 |
- |
|
|