Lines 101-107
Arrayref of C<MARC::Record>s.
Link Here
|
101 |
|
101 |
|
102 |
sub update_index { |
102 |
sub update_index { |
103 |
my ($self, $biblionums, $records) = @_; |
103 |
my ($self, $biblionums, $records) = @_; |
104 |
|
|
|
105 |
my $conf = $self->get_elasticsearch_params(); |
104 |
my $conf = $self->get_elasticsearch_params(); |
106 |
my $elasticsearch = $self->get_elasticsearch(); |
105 |
my $elasticsearch = $self->get_elasticsearch(); |
107 |
my $documents = $self->marc_records_to_documents($records); |
106 |
my $documents = $self->marc_records_to_documents($records); |
Lines 112-118
sub update_index {
Link Here
|
112 |
my $document = $documents->[$i]; |
111 |
my $document = $documents->[$i]; |
113 |
push @body, { |
112 |
push @body, { |
114 |
index => { |
113 |
index => { |
115 |
_id => $id |
114 |
_id => "$id" |
116 |
} |
115 |
} |
117 |
}; |
116 |
}; |
118 |
push @body, $document; |
117 |
push @body, $document; |
119 |
- |
|
|