Skip to content

Commit

Permalink
Issue joubu#12: Make populate_db.pl initialize ES indexes
Browse files Browse the repository at this point in the history
This patch makes that :-P

Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
tomascohen committed Oct 18, 2017
1 parent a4a5f0e commit 68a5e77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion populate_db.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use C4::Installer;
use C4::Context;

#use Koha::SearchEngine::Elasticsearch;
use Koha::SearchEngine::Elasticsearch;

=head1 NAME
Expand Down Expand Up @@ -122,6 +122,9 @@ =head1 OPTIONS
C4::Context->set_preference( 'staffClientBaseURL', $intranet_base_url );
C4::Context->set_preference( 'OPACBaseURL', $opac_base_url );

# Initialize ES mappings
Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings;

sub initialize_data {
say "Inserting koha db structure..."
if $verbose;
Expand Down

0 comments on commit 68a5e77

Please sign in to comment.