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

    r18566 r23116  
    6363sub classify {
    6464    my $self = shift (@_);
    65     my ($doc_obj, $edit_mode, @options) = @_;
     65    my ($doc_obj, @options) = @_;
    6666   
    6767    # @options used by AZCompactList when is uses SectionList internally
     
    9797    if (defined $thissection) {
    9898    # just classify the one section
    99     $self->classify_section($thissection, $doc_obj, $edit_mode, $sortmeta, $nosort);
     99    $self->classify_section($thissection, $doc_obj, $sortmeta, $nosort);
    100100    } else   
    101101    {
    102102    $thissection = $doc_obj->get_next_section ($doc_obj->get_top_section());
    103103    while (defined $thissection) {
    104         $self->classify_section($thissection, $doc_obj, $edit_mode, $sortmeta, $nosort);
     104        $self->classify_section($thissection, $doc_obj, $sortmeta, $nosort);
    105105        $thissection = $doc_obj->get_next_section ($thissection);
    106106    }
     
    110110sub classify_section {
    111111    my $self = shift (@_);
    112     my ($section, $doc_obj, $edit_mode, $sortmeta, $nosort) = @_;
     112    my ($section, $doc_obj, $sortmeta, $nosort) = @_;
    113113
    114114    my $doc_OID = $doc_obj->get_OID();
Note: See TracChangeset for help on using the changeset viewer.