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

    r22038 r23116  
    184184{
    185185    my $self = shift (@_);
    186     my ($doc_obj,$edit_mode) = @_;
     186    my ($doc_obj) = @_;
    187187
    188188    my $doc_OID = $doc_obj->get_OID();
     
    215215    my $full_doc_OID
    216216        = ($thissection ne "") ? "$doc_OID.$thissection" : $doc_OID;
    217 
    218     if (($edit_mode eq "delete") || ($edit_mode eq "update")) {
    219         print $outhandle "  Deleting $full_doc_OID for AZCompactList\n";
    220         delete $self->{'list'}->{$full_doc_OID};
    221         delete $self->{'listmetavalue'}->{$full_doc_OID};
    222         delete $self->{'list_mvpair'}->{$full_doc_OID};
    223         delete $self->{'reclassify'}->{$full_doc_OID};
    224 
    225         next if ($edit_mode eq "delete");
    226     }
    227 
    228217
    229218    if (defined $self->{'list_mvpair'}->{$full_doc_OID})
Note: See TracChangeset for help on using the changeset viewer.