54 |
Insert data into index |
Insert data into index |
55 |
|
|
56 |
$index->insert( |
$index->insert( |
|
path => 'path', |
|
57 |
headline => 'headline text', |
headline => 'headline text', |
58 |
|
mfn => '99', |
59 |
); |
); |
60 |
|
|
61 |
=cut |
=cut |
67 |
|
|
68 |
my $log = $self->_get_logger(); |
my $log = $self->_get_logger(); |
69 |
|
|
70 |
$log->logconfess("need path and headline!") unless (defined($data->{'path'}) && defined($data->{'headline'})); |
$log->logconfess("need headline and mfn!") unless (defined($data->{'headline'}) && defined($data->{'mfn'})); |
71 |
|
|
72 |
push @{$self->{'index'}}, $data; |
push @{$self->{'index'}}, $data; |
73 |
|
|
74 |
$log->debug("stored path: ",$data->{'path'}," headline: ",$data->{'headline'}); |
$log->debug("stored ",$data->{'mfn'},": ",$data->{'headline'}); |
75 |
|
|
76 |
} |
} |
77 |
|
|