Changeset 395 for trunk


Ignore:
Timestamp:
1999-07-16T12:15:49+12:00 (25 years ago)
Author:
sjboddie
Message:

changed to use termfreqclassarray type

Location:
trunk/gsdl/src/colservr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/phrasesearch.cpp

    r351 r395  
    1212/*
    1313   $Log$
     14   Revision 1.4  1999/07/16 00:15:48  sjboddie
     15   changed to use termfreqclassarray type
     16
    1417   Revision 1.3  1999/07/07 06:19:45  rjmcnab
    1518   Added ability to combine two or more independant queries.
     
    6568
    6669bool doc_phrase_search (unsigned char *doc, int doclen,
    67             const vector<termfreqclass> &phrase) {
     70            const termfreqclassarray &phrase) {
    6871  // note: this uses the most braindead search routine :-)
    6972  // however its not so bad as there shouldn't be many partial
     
    8992   
    9093    // 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();
    9396    do {
    9497      // get the next non-word ... and ignore it, then get the next word
     
    122125            const text_t &longindex,
    123126            const text_t &collection,
    124             const vector<termfreqclass> &phrase,
     127            const termfreqclassarray &phrase,
    125128            int docnum) {
    126129  // disect the long index to find out where the text should come from
  • trunk/gsdl/src/colservr/phrasesearch.h

    r351 r395  
    3131            const text_t &longindex,
    3232            const text_t &collection,
    33             const vector<termfreqclass> &phrase,
     33            const termfreqclassarray &phrase,
    3434            int docnum);
    3535
Note: See TracChangeset for help on using the changeset viewer.