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

    r20828 r23116  
    133133sub classify {
    134134    my $self = shift (@_);
    135     my ($doc_obj, $edit_mode) = @_;
     135    my ($doc_obj) = @_;
    136136
    137137    my $doc_OID = $doc_obj->get_OID();
     
    151151    }
    152152   
    153     if (($edit_mode eq "delete") || ($edit_mode eq "update")) {
    154     $self->oid_hash_delete($doc_OID,'list');
    155     return if ($edit_mode eq "delete");
    156     }
    157 
    158153    my $sort_other = "";
    159154    if (defined $self->{'sort'} && $self->{'sort'} ne "") {
Note: See TracChangeset for help on using the changeset viewer.