[prev in list] [next in list] [prev in thread] [next in thread]
List: kinosearch
Subject: [KinoSearch] Merging indexes, etc
From: henka () cityweb ! co ! za (henka () cityweb ! co ! za)
Date: 2006-10-30 12:54:18
Message-ID: 61475.196.23.181.69.1162241026.squirrel () support ! metroweb ! co ! za
[Download RAW message or body]
Using undef on $iv appears to be the ticket; thanks, Marvin. The master
index merge has been running for over an hour now without a glitch (and
with the origional 0.12 code - ie, without the patch previously sent).
By way of documenting this for others, here's the flow:
my $iv;
my $touched;
foreach (sub-indexes) {
$touched=0;
$iv= KinoSearch::InvIndexer->new(...);
if ($terms_to_be_deleted) {
$iv->delete_docs_by_term(...);
$touched=1;
}
$iv->finish() if $touched;
undef $iv;
$touched=0;
if ($temp_indexes_to_be_added) {
$iv= KinoSearch::InvIndexer->new(...);
$iv->add_invindexes(...);
$touched=1;
$iv->finish() if $touched;
undef $iv;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic