Ignore:
Timestamp:
2003-05-02T11:20:23+12:00 (21 years ago)
Author:
kjdon
Message:

MGPPWrapper methods getDocument and loadIndexData no longer take basepath arg, also now check that the maxdocs param is not empty

File:
1 edited

Legend:

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

    r4098 r4223  
    472472
    473473    // set up mgpp_src
    474     // String basedir = GSFile.collectionBaseDir(site_home_, cluster_name_);
    475     // String indexdir = GSFile.collectionIndexPath(cluster_name_, index);
    476     String basedir = "";
    477474    String indexdir = GSFile.collectionBaseDir(site_home_, cluster_name_) +
    478475        File.separatorChar + GSFile.collectionIndexPath(cluster_name_, index);
    479 
    480     mgpp_src_.loadIndexData(basedir, indexdir);
     476    mgpp_src_.loadIndexData(indexdir);
    481477    setStandardQueryParams(params);
    482478   
     
    575571        boolean val = (value.equals(BOOLEAN_PARAM_ON)?true:false);
    576572        mgpp_src_.setStem(val);
    577         } else if (name.equals(MAXDOCS_PARAM)) {
     573        } else if (name.equals(MAXDOCS_PARAM)&& !value.equals("")) {
    578574        int docs = Integer.parseInt(value);
    579575        mgpp_src_.setMaxDocs(docs);
Note: See TracChangeset for help on using the changeset viewer.