Changeset 2937 for trunk/gsdl/src/colservr/phrasesearch.cpp
- Timestamp:
- 2002-02-04T10:49:17+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/phrasesearch.cpp
r2146 r2937 188 188 // note that we're treating indexes of type 'all' (i.e. text,Title,Creator) 189 189 // or other composite indexes that contain "text" as if they were simply 'text' indexes 190 if ( type == "text" || type == "all" || findword(type.begin(),type.end(),"text")) {190 if ((type == "text") || (type == "all") || (findword(type.begin(),type.end(),"text") != type.end())) { 191 191 char *doc = NULL; 192 192 int doclen = 0; … … 238 238 text_tarray::const_iterator subvalue_end = (*tarr_ptr).end(); 239 239 while (subvalue_here != subvalue_end) { 240 if (subvalue_here != NULL) { 241 metadata = (to_utf8(*subvalue_here)).getcarr(metadata_len); 242 result = doc_phrase_search ((unsigned char *)metadata, metadata_len, phrase); 243 delete [] metadata; 244 245 if (result) return true; 246 } 247 240 metadata = (to_utf8(*subvalue_here)).getcarr(metadata_len); 241 result = doc_phrase_search ((unsigned char *)metadata, metadata_len, phrase); 242 delete [] metadata; 243 244 if (result) return true; 248 245 subvalue_here++; 249 246 }
Note:
See TracChangeset
for help on using the changeset viewer.