Changeset 3991


Ignore:
Timestamp:
2003-03-26T11:49:43+12:00 (21 years ago)
Author:
kjdon
Message:

mgpp wrapper now needs to have an empty basepath, so changed all the loadIndex and getDocument calls

File:
1 edited

Legend:

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

    r3973 r3991  
    2929import java.util.Vector;
    3030import java.util.HashMap;
     31import java.io.File;
    3132/**
    3233 * PhindServices - the phind phrase browsing service
     
    167168
    168169    // set the mgpp index data - we are looking up pword
    169     mgpp_src_.loadIndexData(basepath_, "pword");
     170    mgpp_src_.loadIndexData("", basepath_+File.separatorChar+"pword");
    170171
    171172    mgpp_src_.runQuery(word);
     
    186187                    long last_d) {
    187188
    188     String record = mgpp_src_.getDocument(basepath_, "pdata", "Document",
     189    String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"pdata", "Document",
    189190                          phrase);
    190191    if (record.equals("")) {
     
    266267   
    267268    // look up the phrase in the pdata thingy
    268     String record = mgpp_src_.getDocument(basepath_, "pdata", "Document",
     269    String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"pdata", "Document",
    269270                          phrase_num);
    270271
     
    340341   
    341342    // look up the phrase in the docs thingy
    342     String record = mgpp_src_.getDocument(basepath_, "docs", "Document",
     343    String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"docs", "Document",
    343344                          doc_num);
    344345   
     
    396397
    397398    // look up the phrase in the pdata thingy
    398     String record = mgpp_src_.getDocument(basepath_, "pdata", "Document",
     399    String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"pdata", "Document",
    399400                          phrase_num);
    400401
Note: See TracChangeset for help on using the changeset viewer.