Lines 306-314
sub _do_reindex {
Link Here
|
306 |
try{ |
306 |
try{ |
307 |
$response = $indexer->update_index( \@id_buffer, \@commit_buffer ); |
307 |
$response = $indexer->update_index( \@id_buffer, \@commit_buffer ); |
308 |
_handle_response($response); |
308 |
_handle_response($response); |
309 |
$commit_count = $commit; |
|
|
310 |
@id_buffer = (); |
311 |
@commit_buffer = (); |
312 |
_log( 1, "Commit complete\n" ); |
309 |
_log( 1, "Commit complete\n" ); |
313 |
} catch { |
310 |
} catch { |
314 |
if( ref $_ eq 'Koha::Exceptions::Elasticsearch::BadResponse'){ |
311 |
if( ref $_ eq 'Koha::Exceptions::Elasticsearch::BadResponse'){ |
Lines 316-321
sub _do_reindex {
Link Here
|
316 |
_log(2,$_->{details}); |
313 |
_log(2,$_->{details}); |
317 |
} |
314 |
} |
318 |
} |
315 |
} |
|
|
316 |
$commit_count = $commit; |
317 |
@id_buffer = (); |
318 |
@commit_buffer = (); |
319 |
} |
319 |
} |
320 |
} |
320 |
} |
321 |
|
321 |
|
322 |
- |
|
|