Show
Ignore:
Timestamp:
24.08.2011 15:52:02 (8 years ago)
Author:
davidb
Message:

Code changes to support indexers that are provided through the extension mechanism

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/mgppbuilder.pm

    r24404 r24460  
    282282 
    283283 
    284 sub build_indexes_extra { 
     284sub post_build_indexes { 
    285285    my $self = shift(@_); 
     286 
    286287    #define the final field lists 
    287288    $self->make_final_field_list(); 
     
    617618    my $collection_infodb = shift(@_); 
    618619 
    619     # define the indexed field mapping if not already done so (ie if infodb called separately from build_index) 
     620    # define the indexed field mapping if not already done so  
     621    # (i.e. if infodb called separately from build_index) 
    620622    if (!defined $self->{'build_cfg'}) { 
    621623    $self->read_final_field_list(); 
     
    703705# at the end of building, we have an indexfieldmap with all the mappings, 
    704706# plus some extras, and indexmap with any indexes in it that weren't 
    705 # specified in the index definition.  we want to make an ordered list of 
    706 # fields that are indexed, and a list of mappings that are used. this will 
     707# specified in the index definition.  We want to make an ordered list of 
     708# fields that are indexed, and a list of mappings that are used. This will 
    707709# be used for the build.cfg file, and for collection meta definition we 
    708710# store these in a build.cfg bit 
     
    763765        push (@indexfields, "$field"); 
    764766        } 
    765  
    766          
    767767    } 
    768768    } 
     
    771771    $self->{'build_cfg'}->{'indexfieldmap'} = \@indexfieldmap; 
    772772    } 
     773 
    773774    if (scalar @indexfields) { 
    774775    $self->{'build_cfg'}->{'indexfields'} = \@indexfields;