Changeset 16947 for gsdl/trunk/runtime-src/src/colservr/queryinfo.cpp
- Timestamp:
- 2008-08-21T15:13:41+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/colservr/queryinfo.cpp
r12868 r16947 203 203 204 204 void docresultclass::clear () { 205 docid=""; 205 206 docnum=-1; 206 207 docweight=0.0; … … 219 220 220 221 docresultclass &docresultclass::operator=(const docresultclass &d) { 222 docid = d.docid; 221 223 docnum = d.docnum; 222 224 docweight = d.docweight; … … 229 231 230 232 bool operator==(const docresultclass &x, const docresultclass &y) { 231 return ((x.doc num == y.docnum) && (x.docweight == y.docweight) &&233 return ((x.docid == y.docid) && (x.docnum == y.docnum) && (x.docweight == y.docweight) && 232 234 (x.num_query_terms_matched == y.num_query_terms_matched) && 233 235 (x.num_phrase_match == y.num_phrase_match)); … … 235 237 236 238 bool operator<(const docresultclass &x, const docresultclass &y) { 237 return ((x.docnum < y.docnum) || 238 ((x.docnum == y.docnum) && 239 ((x.docweight < y.docweight) || 240 ((x.docweight == y.docweight) && 241 ((x.num_query_terms_matched < y.num_query_terms_matched) || 242 ((x.num_query_terms_matched == y.num_query_terms_matched) && 243 ((x.num_phrase_match < y.num_phrase_match)))))))); 239 return ((x.docid < y.docid) || 240 ((x.docid == y.docid) && 241 ((x.docnum < y.docnum) || 242 ((x.docnum == y.docnum) && 243 ((x.docweight < y.docweight) || 244 ((x.docweight == y.docweight) && 245 ((x.num_query_terms_matched < y.num_query_terms_matched) || 246 ((x.num_query_terms_matched == y.num_query_terms_matched) && 247 ((x.num_phrase_match < y.num_phrase_match)))))))))); 244 248 } 245 249
Note:
See TracChangeset
for help on using the changeset viewer.