Changeset 9938


Ignore:
Timestamp:
2005-05-24T14:31:21+12:00 (19 years ago)
Author:
kjdon
Message:

added a new field to build.cfg: indexstem. specifies the root of teh index/gdbm filenames. can now rename a colleciton and it will still work without rebuilding

Location:
trunk/gsdl/perllib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/colcfg.pm

    r9935 r9938  
    129129
    130130    return &cfgread::read_cfg_file ($filename,
    131                 q/^(builddate|buildtype|numdocs|numwords|numbytes|maxnumeric|textlevel)$/,
     131                q/^(builddate|buildtype|numdocs|numwords|numbytes|maxnumeric|textlevel|indexstem)$/,
    132132                    q/^(metadata|languages|indexfields|indexfieldmap|indexmap|indexlevels|levelmap)$/);
    133133}
     
    137137
    138138    &cfgread::write_cfg_file($filename, $data,
    139            q/^(builddate|buildtype|numdocs|numwords|numbytes|maxnumeric|textlevel)$/,
     139           q/^(builddate|buildtype|numdocs|numwords|numbytes|maxnumeric|textlevel|indexstem)$/,
    140140           q/^(metadata|languages|indexfieldsindexfieldmap|indexmap|indexlevels|levelmap)$/);
    141141}
  • trunk/gsdl/perllib/mgbuilder.pm

    r9853 r9938  
    852852    # store the build date
    853853    $build_cfg->{'builddate'} = time;
    854 
     854    $build_cfg->{'indexstem'} = $self->{'collection'};
    855855    # store the number of documents and number of bytes
    856856    $build_cfg->{'numdocs'} = $self->{'buildproc'}->get_num_docs();
     
    914914    # write out the build information
    915915    &cfgread::write_cfg_file("$self->{'build_dir'}/build.cfg", $build_cfg,
    916                  '^(builddate|numdocs|numbytes|numwords|numsections|maxnumeric)$',
     916                 '^(builddate|numdocs|numbytes|numwords|numsections|maxnumeric|indexstem)$',
    917917                             '^(indexmap|subcollectionmap|languagemap|notbuilt)$');
    918918
  • trunk/gsdl/perllib/mgppbuilder.pm

    r9936 r9938  
    11411141    $build_cfg->{'builddate'} = time;
    11421142    $build_cfg->{'buildtype'} = $self->{'buildtype'};
    1143    
     1143    $build_cfg->{'indexstem'} = $self->{'collection'};
    11441144    # store the level info
    11451145    my @indexlevels = ();
     
    11931193    # write out the build information
    11941194    &cfgread::write_cfg_file("$self->{'build_dir'}/build.cfg", $build_cfg,
    1195                  '^(builddate|buildtype|numdocs|numbytes|textlevel)$',
     1195                 '^(builddate|buildtype|numdocs|numbytes|textlevel|indexstem)$',
    11961196                             '^(indexmap|subcollectionmap|languagemap|indexfieldmap|notbuilt|indexfields|indexlevels|levelmap)$');
    11971197
Note: See TracChangeset for help on using the changeset viewer.