- Timestamp:
- 1999-07-16T12:15:49+12:00 (25 years ago)
- Location:
- trunk/gsdl/src/colservr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/phrasesearch.cpp
r351 r395 12 12 /* 13 13 $Log$ 14 Revision 1.4 1999/07/16 00:15:48 sjboddie 15 changed to use termfreqclassarray type 16 14 17 Revision 1.3 1999/07/07 06:19:45 rjmcnab 15 18 Added ability to combine two or more independant queries. … … 65 68 66 69 bool doc_phrase_search (unsigned char *doc, int doclen, 67 const vector<termfreqclass>&phrase) {70 const termfreqclassarray &phrase) { 68 71 // note: this uses the most braindead search routine :-) 69 72 // however its not so bad as there shouldn't be many partial … … 89 92 90 93 // there will be at least one member of phrase (see above) 91 vector<termfreqclass>::const_iterator phrase_here = phrase.begin();92 vector<termfreqclass>::const_iterator phrase_end = phrase.end();94 termfreqclassarray::const_iterator phrase_here = phrase.begin(); 95 termfreqclassarray::const_iterator phrase_end = phrase.end(); 93 96 do { 94 97 // get the next non-word ... and ignore it, then get the next word … … 122 125 const text_t &longindex, 123 126 const text_t &collection, 124 const vector<termfreqclass>&phrase,127 const termfreqclassarray &phrase, 125 128 int docnum) { 126 129 // disect the long index to find out where the text should come from -
trunk/gsdl/src/colservr/phrasesearch.h
r351 r395 31 31 const text_t &longindex, 32 32 const text_t &collection, 33 const vector<termfreqclass>&phrase,33 const termfreqclassarray &phrase, 34 34 int docnum); 35 35
Note:
See TracChangeset
for help on using the changeset viewer.