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

    r20454 r23116  
    126126sub classify {
    127127    my $self = shift (@_);
    128     my ($doc_obj,$edit_mode) = @_;
     128    my ($doc_obj) = @_;
    129129
    130130    my $doc_OID = $doc_obj->get_OID();
     
    132132    if (!defined $lastmodified || $lastmodified eq "") {
    133133    print $self->{'outhandle'}, "RecentDocumentsList: $doc_OID has no lastmodified metadata, not classifying\n";
    134     return;
    135     }
    136 
    137     if ($edit_mode eq "delete") {
    138     $self->oid_hash_delete($doc_OID,'list');
    139134    return;
    140135    }
Note: See TracChangeset for help on using the changeset viewer.