[KinoSearch] Merging indexes, etc

henka at cityweb.co.za henka at cityweb.co.za
Mon Oct 30 12:43:46 PST 2006




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;
   }
 }



_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch




More information about the kinosearch mailing list