Changeset 9937 for trunk/gsdl/src/colservr/mgsearch.cpp
- Timestamp:
- 2005-05-24T14:21:02+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/mgsearch.cpp
r9631 r9937 215 215 216 216 217 static text_tgetindexsuffix (const text_t &collection,217 text_t mgsearchclass::getindexsuffix (const text_t &collection, 218 218 const text_t &index) { 219 219 220 220 text_t indexsuffix = "index"; 221 221 indexsuffix = filename_cat (indexsuffix, index); 222 indexsuffix = filename_cat (indexsuffix, collection); 222 if (indexstem.empty()) { 223 // no index stem, use the coll name 224 indexsuffix = filename_cat (indexsuffix, collection); 225 } else { 226 indexsuffix = filename_cat (indexsuffix, indexstem); 227 } 223 228 return indexsuffix; 224 229 } … … 243 248 cache = NULL; 244 249 } 250 } 251 252 void mgsearchclass::set_indexstem(const text_t &stem) { 253 indexstem = stem; 254 245 255 } 246 256 … … 264 274 char *txtsuffix = (getindexsuffix (collection, "text")).getcstr(); 265 275 assert (txtsuffix != NULL); 266 267 276 #ifdef __WIN32__ 268 277 char *ccollectdir = (collectdir+"\\").getcstr(); assert (ccollectdir != NULL);
Note:
See TracChangeset
for help on using the changeset viewer.