|
Lines 391-397
if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
Link Here
|
| 391 |
# TODO: When new indexes get added, we could have other ways to |
391 |
# TODO: When new indexes get added, we could have other ways to |
| 392 |
# fetch the list of available indexes (e.g. plugins, etc) |
392 |
# fetch the list of available indexes (e.g. plugins, etc) |
| 393 |
$es_status->{nodes} = $es_conf->{nodes}; |
393 |
$es_status->{nodes} = $es_conf->{nodes}; |
| 394 |
my $es = Search::Elasticsearch->new({ nodes => $es_conf->{nodes} }); |
394 |
my $es = Search::Elasticsearch->new( $es_conf ); |
| 395 |
my $es_status->{version} = $es->info->{version}->{number}; |
395 |
my $es_status->{version} = $es->info->{version}->{number}; |
| 396 |
|
396 |
|
| 397 |
foreach my $index ( @indexes ) { |
397 |
foreach my $index ( @indexes ) { |
| 398 |
- |
|
|