Changeset 502 for trunk/gsdl/src/colservr/queryinfo.cpp
- Timestamp:
- 1999-09-01T10:47:57+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/queryinfo.cpp
r398 r502 12 12 /* 13 13 $Log$ 14 Revision 1.11 1999/08/31 22:47:57 rjmcnab 15 Added MatchMode. 16 14 17 Revision 1.10 1999/07/16 03:42:23 sjboddie 15 18 changed isApprox … … 68 71 querystring.clear(); 69 72 search_type = 0; // 0 = boolean, 1 = ranked 73 match_mode = 0; // 0 = some, 1 = all 70 74 casefolding = 0; 71 75 stemming = 0; … … 82 86 querystring = q.querystring; 83 87 search_type = q.search_type; 88 match_mode = q.match_mode; 84 89 casefolding = q.casefolding; 85 90 stemming = q.stemming; … … 98 103 (x.querystring == y.querystring) && 99 104 (x.search_type == y.search_type) && 105 (x.match_mode == y.match_mode) && 100 106 (x.casefolding == y.casefolding) && 101 107 (x.stemming == y.stemming) && … … 119 125 outs << text_t2ascii << " querystring = \"" << q.querystring << "\"\n"; 120 126 outs << " search_type = \"" << q.search_type << "\"\n"; 127 outs << " match_mode = \"" << q.match_mode << "\"\n"; 121 128 outs << " casefolding = \"" << q.casefolding << "\"\n"; 122 129 outs << " stemming = \"" << q.stemming << "\"\n"; … … 217 224 218 225 return *this; 226 } 227 228 229 bool operator==(const docresultclass &x, const docresultclass &y) { 230 return ((x.docnum == y.docnum) && (x.docweight == y.docweight) && 231 (x.num_query_terms_matched == y.num_query_terms_matched) && 232 (x.num_phrase_match == y.num_phrase_match)); 233 } 234 235 bool operator<(const docresultclass &x, const docresultclass &y) { 236 return ((x.docnum < y.docnum) || 237 ((x.docnum == y.docnum) && 238 ((x.docweight < y.docweight) || 239 ((x.docweight == y.docweight) && 240 ((x.num_query_terms_matched < y.num_query_terms_matched) || 241 ((x.num_query_terms_matched == y.num_query_terms_matched) && 242 ((x.num_phrase_match < y.num_phrase_match)))))))); 219 243 } 220 244
Note:
See TracChangeset
for help on using the changeset viewer.