From 74ff965734dc069ffa18b0158ef07fcef664d118 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 7 May 2020 12:06:10 +0000 Subject: [PATCH] Bug 24823: (QA follow-up) Fix deletion and POD Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- Koha/SearchEngine/Elasticsearch.pm | 2 -- Koha/SearchEngine/Elasticsearch/Indexer.pm | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index 8bc27e67e5..b6b3be0111 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -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. diff --git a/Koha/SearchEngine/Elasticsearch/Indexer.pm b/Koha/SearchEngine/Elasticsearch/Indexer.pm index ed08647a48..e2c1c91fbd 100644 --- a/Koha/SearchEngine/Elasticsearch/Indexer.pm +++ b/Koha/SearchEngine/Elasticsearch/Indexer.pm @@ -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', -- 2.39.5