Changeset 13993
- Timestamp:
- 2007-03-28T16:07:48+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2MGPPSearch.java
r13916 r13993 92 92 93 93 protected boolean setUpQueryer(HashMap params) { 94 // set up mgpp_src95 String indexdir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) + File.separatorChar + GSFile.collectionIndexPath(this.index_stem, this.physical_index_name);96 this.mgpp_src.loadIndexData(indexdir);97 94 98 95 // set up the query params 99 96 Set entries = params.entrySet(); 100 97 Iterator i = entries.iterator(); 98 String physical_sub_index_name=null; 99 String physical_index_language_name=null; 101 100 while (i.hasNext()) { 102 101 Map.Entry m = (Map.Entry)i.next(); … … 129 128 this.mgpp_src.setSortByRank(false); 130 129 } 130 } else if (name.equals(INDEX_SUBCOLLECTION_PARAM)) { 131 physical_sub_index_name=value; 132 }else if (name.equals(INDEX_LANGUAGE_PARAM)){ 133 physical_index_language_name=value; 131 134 } // ignore any others 132 135 } 133 136 137 if (physical_index_name.equals("idx")){ 138 if (physical_sub_index_name!=null) { 139 physical_index_name+=physical_sub_index_name; 140 } 141 if (physical_index_language_name!=null){ 142 physical_index_name+=physical_index_language_name; 143 } 144 } 145 146 // set up mgpp_src 147 String indexdir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) + File.separatorChar + GSFile.collectionIndexPath(this.index_stem, physical_index_name); 148 this.mgpp_src.loadIndexData(indexdir); 149 150 physical_index_name="idx"; 134 151 return true; 135 152 }
Note:
See TracChangeset
for help on using the changeset viewer.