Changeset 29630

Show
Ignore:
Timestamp:
15.12.2014 09:59:41 (5 years ago)
Author:
kjdon
Message:

setting case and stem based on param defaults

Files:
1 modified

Legend:

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

    r29558 r29630  
    7171            return false; 
    7272        } 
    73         this.mg_src.setMaxNumeric (this.maxnumeric); 
    7473    // internally mg uses 50, so set this here 
    7574    paramDefaults.put(MAXDOCS_PARAM, "50"); 
     75        this.mg_src.setMaxNumeric (this.maxnumeric); 
    7676        return true; 
    7777    } 
     
    220220    { 
    221221    // set the default settings that gs uses 
     222      this.mg_src.setMaxDocs(paramDefaults.get(MAXDOCS_PARAM)); 
    222223    this.mg_src.setReturnTerms(true); 
    223     this.mg_src.setCase(true); 
    224     this.mg_src.setStem(false);  
     224    this.mg_src.setCase(paramDefaults.get(CASE_PARAM).equals(BOOLEAN_PARAM_ON) ? true : false); 
     225    this.mg_src.setStem(paramDefaults.get(STEM_PARAM).equals(BOOLEAN_PARAM_ON) ? true : false);  
    225226    Set entries = params.entrySet(); 
    226227    Iterator i = entries.iterator();