Changeset 12380 for trunk/gsdl/src/colservr
- Timestamp:
- 2006-08-02T16:30:23+12:00 (18 years ago)
- Location:
- trunk/gsdl/src/colservr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/expat_resultset.cpp
r12262 r12380 51 51 termfreqobj.termfreq = atoi(term_frequency_str); 52 52 queryresult_ptr->orgterms.push_back(termfreqobj); 53 } 54 55 if (element_name == "StopWord") { 56 char* stop_word_value_str = get_attribute(attributes, "value"); 57 queryresult_ptr->stopwords.insert((text_t) stop_word_value_str); 53 58 } 54 59 -
trunk/gsdl/src/colservr/lucenequeryfilter.cpp
r9620 r12380 238 238 ++terms_here; 239 239 } 240 241 // add the stop words 242 text_tset::iterator stopwords_here = queryresults.stopwords.begin(); 243 text_tset::iterator stopwords_end = queryresults.stopwords.end(); 244 while (stopwords_here != stopwords_end) { 245 response.stopwords.insert(*stopwords_here); 246 ++stopwords_here; 247 } 240 248 } 241 249 … … 367 375 ++termvar_here; 368 376 } 377 378 // add the stop words 379 text_tset::iterator stopwords_here = thisqueryresults.stopwords.begin(); 380 text_tset::iterator stopwords_end = thisqueryresults.stopwords.end(); 381 while (stopwords_here != stopwords_end) { 382 multiresults.stopwords.insert(*stopwords_here); 383 ++stopwords_here; 384 } 369 385 } 370 386 -
trunk/gsdl/src/colservr/queryinfo.h
r12276 r12380 176 176 termfreqclassarray terms; 177 177 text_tset termvariants; 178 178 text_tset stopwords; 179 179 180 void clear (); 180 181 queryresultsclass &operator=(const queryresultsclass &q);
Note:
See TracChangeset
for help on using the changeset viewer.