Changeset 20236 for greenstone3


Ignore:
Timestamp:
2009-08-12T14:46:47+12:00 (12 years ago)
Author:
kjdon
Message:

specify a default when create the custom query params

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/service/AbstractGS2Search.java

    r15326 r20236  
    293293    {
    294294    if (this.does_case){
    295         createParameter(CASE_PARAM, param_list, lang);
     295      // gs2 has case on by default
     296      createParameter(CASE_PARAM, param_list, lang,  BOOLEAN_PARAM_ON);
    296297    }
    297298    if (this.does_stem){
    298         createParameter(STEM_PARAM, param_list, lang);
     299      // but stem is off by default
     300      createParameter(STEM_PARAM, param_list, lang, BOOLEAN_PARAM_OFF);
    299301    }
    300302    if (this.does_accent){
    301         createParameter(ACCENT_PARAM, param_list, lang);
     303      // and so is accent folding
     304        createParameter(ACCENT_PARAM, param_list, lang, BOOLEAN_PARAM_OFF);
    302305    }
    303306    createParameter(MATCH_PARAM, param_list, lang);
Note: See TracChangeset for help on using the changeset viewer.