Ignore:
Timestamp:
2010-10-12T13:55:07+13:00 (14 years ago)
Author:
kjdon
Message:

for incremental build, classifiers are not really done incrementally. Previously, we reconstructed all the docs from the database, and classified them, then processed any new/edited/deleted docs, updating the classifier as necessary. Now, we process all new/updated docs, then reconstruct the docs from the database, but only classify those not changed/deleted. This means that we are only ever adding docs to a classifier, never updating or deleting. I have removed edit_mode and all code handling deleting stuff from the classifier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/classify/AZList.pm

    r20428 r23116  
    121121sub classify {
    122122    my $self = shift (@_);
    123     my ($doc_obj,$edit_mode) = @_;
     123    my ($doc_obj) = @_;
    124124
    125125    my $doc_OID = $doc_obj->get_OID();
    126126    my $outhandle = $self->{'outhandle'};
    127 
    128     if (($edit_mode eq "delete") || ($edit_mode eq "update")) {
    129     $self->oid_hash_delete($doc_OID,'list');
    130     return if ($edit_mode eq "delete");     
    131     }
    132127
    133128    my $metavalue;
Note: See TracChangeset for help on using the changeset viewer.