Changeset 27356 for main


Ignore:
Timestamp:
2013-05-16T15:24:14+12:00 (11 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.