Changeset 27356

Show
Ignore:
Timestamp:
16.05.2013 15:24:14 (6 years ago)
Author:
kjdon
Message:

added sortfields (collect.cfg) and indexsortfields, indexsortfieldmap (build.cfg) - used for sorting search results in lucene collections

Files:
1 modified

Legend:

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

    r27306 r27356  
    6767# {'levels'}->array of strings (for mgpp eg Section, Paragraph) 
    6868# {'searchtype'}->array of strings (for mgpp, form or plain) 
    69  
     69# {'sortfields'}->array of strings (for lucene) 
    7070# {'subcollection'}->hash of key-value pairs 
    7171 
     
    131131# {'indexmap'} -> array of strings 
    132132# {'indexlevels'} -> array of strings 
     133# {'indexsortfields'} -> array of strings 
     134# {'indexsortfieldmap'} -> array of strings in the form "field->byFI" 
    133135# {'stemindexes'} -> string (int) 
    134136# {'textlevel'}->string 
     
    181183                    q/store_metadata_coverage|indexname|indexlevel)$/, 
    182184                    q/(maintainer|languages|indexsubcollections|orthogonalbuildtypes|/ . 
    183                        q/indexes|indexoptions|dontbuild|dontgdbm|mirror|levels|plugout|/ . 
     185                       q/indexes|indexoptions|dontbuild|dontgdbm|mirror|levels|sortfields|plugout|/ . 
    184186                       q/searchtype|searchtypes)$/, 
    185187                    q/^(subcollection|format)$/, 
     
    233235    return &cfgread::read_cfg_file ($filename,  
    234236           q/^(earliestdatestamp|infodbtype|builddate|buildtype|numdocs|numsections|numwords|numbytes|maxnumeric|textlevel|indexstem|stemindexes|separate_cjk)$/, 
    235            q/^(indexmap|subcollectionmap|languagemap|orthogonalbuildtypes|notbuilt|indexfields|indexfieldmap|indexlevels|levelmap)$/); 
     237           q/^(indexmap|subcollectionmap|languagemap|orthogonalbuildtypes|notbuilt|indexfields|indexfieldmap|indexlevels|levelmap|indexsortfields|indexsortfieldmap)$/); 
    236238                     
    237239} 
     
    243245    &cfgread::write_cfg_file($filename, $data, 
    244246           q/^(earliestdatestamp|infodbtype|builddate|buildtype|numdocs|numsections|numwords|numbytes|maxnumeric|textlevel|indexstem|stemindexes|separate_cjk)$/, 
    245            q/^(indexmap|subcollectionmap|languagemap|orthogonalbuildtypes|notbuilt|indexfields|indexfieldmap|indexlevels|levelmap)$/);            
     247           q/^(indexmap|subcollectionmap|languagemap|orthogonalbuildtypes|notbuilt|indexfields|indexfieldmap|indexlevels|levelmap|indexsortfields|indexsortfieldmap)$/);              
    246248} 
    247249