Bug 24823: (QA follow-up) Fix deletion and POD
authorNick Clemens <nick@bywatersolutions.com>
Thu, 7 May 2020 12:06:10 +0000 (12:06 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 May 2020 10:43:37 +0000 (11:43 +0100)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/SearchEngine/Elasticsearch.pm
Koha/SearchEngine/Elasticsearch/Indexer.pm

index 8bc27e6..b6b3be0 100644 (file)
@@ -64,8 +64,6 @@ Koha::SearchEngine::Elasticsearch - Base module for things using elasticsearch
 
 The name of the index to use, generally 'biblios' or 'authorities'.
 
-=back
-
 =item index_name
 
 The Elasticsearch index name with Koha instance prefix.
index ed08647..e2c1c91 100644 (file)
@@ -287,7 +287,7 @@ sub delete_index {
     my ($self, $biblionums) = @_;
 
     my $elasticsearch = $self->get_elasticsearch();
-    my @body = map { { delete => { _id => $_ } } } @{$biblionums};
+    my @body = map { { delete => { _id => "$_" } } } @{$biblionums};
     my $result = $elasticsearch->bulk(
         index => $self->index_name,
         type => 'data',