Changeset 4194


Ignore:
Timestamp:
2003-04-18T14:55:08+12:00 (21 years ago)
Author:
sjboddie
Message:

Removed code that was preventing search terms containing only digits from appearing in
the "word count" displayed following a query. I think this code was added to prevent
confusion when numeric terms longer than four digits were split up by mg. The new
maxnumeric option allows sane collections containing such terms to exist now however.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/queryaction.cpp

    r3671 r4194  
    13971397  while (this_term != end_term) {
    13981398    // check that the term doesn't consist completely of digits...
    1399     char *term = (*this_term).term.getcstr();
    1400     char *lastchar;
    1401     strtol(term,&lastchar,10);
    1402     if(*lastchar != '\0'){
    1403       freqmsg += (*this_term).term + ": " + (*this_term).freq;
    1404       if ((this_term + 1) != end_term)
    1405     freqmsg += ", ";
    1406     }
    1407     delete term;
     1399    //    char *term = (*this_term).term.getcstr();
     1400    //    char *lastchar;
     1401    //    strtol(term,&lastchar,10);
     1402    //    if(*lastchar != '\0'){
     1403    freqmsg += (*this_term).term + ": " + (*this_term).freq;
     1404    if ((this_term + 1) != end_term)
     1405      freqmsg += ", ";
     1406    //    }
     1407    //    delete term;
    14081408    this_term ++;
    14091409  }
Note: See TracChangeset for help on using the changeset viewer.