Changeset 29637

Show
Ignore:
Timestamp:
15.12.2014 15:52:32 (5 years ago)
Author:
jts21
Message:

Convert MAXDOCS_PARAM to int when calling setMaxDocs. Fixes error introduced in r29630. Now it compiles again.

Files:
1 modified

Legend:

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

    r29630 r29637  
    220220    { 
    221221    // set the default settings that gs uses 
    222       this.mg_src.setMaxDocs(paramDefaults.get(MAXDOCS_PARAM)); 
     222      this.mg_src.setMaxDocs(Integer.parseInt(paramDefaults.get(MAXDOCS_PARAM))); 
    223223    this.mg_src.setReturnTerms(true); 
    224224    this.mg_src.setCase(paramDefaults.get(CASE_PARAM).equals(BOOLEAN_PARAM_ON) ? true : false);