[Koha-bugs] [Bug 30822] BatchCommit does not deal with indexation correctly
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 16 12:49:42 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30822
--- Comment #10 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
I think you did better than me on
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136129
But maybe we need that part, for biblio deletions, what do you think?
+ if ( $record_type eq 'biblio' && ( @updated_biblionumbers ||
@deleted_biblionumbers ) ) {
+ my $indexer = Koha::SearchEngine::Indexer->new({ index =>
$Koha::SearchEngine::BIBLIOS_INDEX });
+ if ( @deleted_biblionumbers ) {
+ $indexer->index_records( \@deleted_biblionumbers, "recordDelete",
"biblioserver" );
+ } else {
+ $indexer->index_records( \@updated_biblionumbers, "specialUpdate",
"biblioserver" );
+ }
+ }
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list