Changeset 20236

Show
Ignore:
Timestamp:
12.08.2009 14:46:47 (10 years ago)
Author:
kjdon
Message:

specify a default when create the custom query params

Files:
1 modified

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);