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