From da2d91352f95f58e3cd18c1b493fcbb8a3e5a154 Mon Sep 17 00:00:00 2001 From: Claire Hernandez Date: Thu, 15 Mar 2018 10:20:30 +0000 Subject: [PATCH] Bug 20248: (follow-up) Improve Elasticsearch mappings UI and rebuild_elastic_search.pl - change index name --- t/db_dependent/Koha_Elasticsearch_Indexer.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha_Elasticsearch_Indexer.t b/t/db_dependent/Koha_Elasticsearch_Indexer.t index bded587176..aa2cf90531 100644 --- a/t/db_dependent/Koha_Elasticsearch_Indexer.t +++ b/t/db_dependent/Koha_Elasticsearch_Indexer.t @@ -74,7 +74,7 @@ subtest 'create_index() tests' => sub { my $indexer; ok( - $indexer = Koha::SearchEngine::Elasticsearch::Indexer->new({ 'index' => 'biblios' }), + $indexer = Koha::SearchEngine::Elasticsearch::Indexer->new({ 'index' => 'biblios_test' }), 'Creating a new indexer object' ); ok( @@ -145,7 +145,7 @@ subtest '_convert_marc_to_json() tests' => sub { ); my @records = ( $marc_record ); - my $importer = Koha::SearchEngine::Elasticsearch::Indexer->new({ index => 'biblios' }); + my $importer = Koha::SearchEngine::Elasticsearch::Indexer->new({ index => 'biblios_test' }); my $conv = $importer->_convert_marc_to_json( \@records )->next(); is( $conv->{author}[0][0], "Author", "First mapped author should be 100a"); is( $conv->{author}[1][0], "Corp Author", "Second mapped author should be 110a"); -- 2.11.0