Ignore:
Timestamp:
2009-02-03T09:46:33+13:00 (15 years ago)
Author:
davidb
Message:

Addition of 'edit_mode' parameter to classify(). This can be either 'add' 'delete' or 'reindex' (should think about renaming the last one to something more appropriate, e.g. update).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/classify/Phind.pm

    r17209 r18455  
    242242sub classify {
    243243    my $self = shift (@_);
    244     my $doc_obj = shift @_;
     244    my ($doc_obj,$edit_mode) = @_;
    245245
    246246    my $verbosity = $self->{'verbosity'};
     
    260260    my $phrlanguage = $self->{'language'};
    261261    return if ($doclanguage && ($doclanguage !~ /$phrlanguage/i));
    262    
     262
     263    if ($edit_mode eq "delete") {
     264    # This classifier works quite differently to the others
     265    # Probably doesn't support incremental building anyway
     266    return;
     267    }
     268
    263269    # record this file
    264270    $self->{'total'} ++;
Note: See TracChangeset for help on using the changeset viewer.