Changeset 11995


Ignore:
Timestamp:
2006-07-04T15:07:11+12:00 (18 years ago)
Author:
davidb
Message:

Improved support for incremental addition: instead of having to run the classifier pass of buildcol.pl from scratch (i.e. read in all documents
from the archives folder) so correct browse structures are formed -- a
simple to implement strategy, but not very efficient -- the first layer
of a classifier structure is now reconstructed from the GDBM file. Then
the new files in the archives directory are added, and then finally the
completed browser structure is formed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ArcPlug.pm

    r10478 r11995  
    144144        my $process_file = 0;
    145145       
    146         if ($processor->get_mode() eq "infodb") {
     146        if (!$processor->is_incremental_capable() || !$self->{'keepold'}) {
    147147        $process_file = 1;
    148148        }
    149149        else {
    150         if (!$processor->is_incremental_capable() || !$self->{'keepold'}) {
     150            # is incremental
     151
     152            # check to see if file needs to be indexed
     153        $index_status = $archive_info->get_status_info($doc_oid);
     154
     155        if ($index_status eq "I") {
    151156            $process_file = 1;
    152157        }
    153         else {
    154             # is incremental
    155 
    156             # check to see if file needs to be indexed
    157             $index_status = $archive_info->get_status_info($doc_oid);
    158 
    159             if ($index_status eq "I") {
    160             $process_file = 1;
    161             }
    162         }
    163158        }
    164 
    165159
    166160        if ($process_file) {
Note: See TracChangeset for help on using the changeset viewer.