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/SimpleList.pm

    r20654 r23116  
    128128sub classify {
    129129    my $self = shift (@_);
    130     my ($doc_obj, $edit_mode) = @_;
     130    my ($doc_obj) = @_;
    131131
    132132    my $doc_OID = $doc_obj->get_OID();
     
    139139    }
    140140   
    141     if ($edit_mode eq "delete") {
    142     if ($nosort) {
    143         $self->oid_array_delete($doc_OID,'list');
    144     }
    145     else {
    146         $self->oid_hash_delete($doc_OID,'list');
    147     }
    148     return;
    149     }
    150 
    151141    my $metavalue;
    152142    my $metaname;
Note: See TracChangeset for help on using the changeset viewer.