Ignore:
Timestamp:
2008-08-20T15:40:00+12:00 (16 years ago)
Author:
mdewsnip
Message:

Changes made by Richard Managh at DL Consulting Ltd for returning document-level term frequency totals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/colservr/expat_resultset.cpp

    r16311 r16915  
    9898      doc.docnum = id_num;
    9999      doc.docweight = qrpack_ptr->match_count;
     100
     101      char* termfreq = get_attribute(attributes, "termfreq");
     102      if (termfreq != NULL)
     103      {
     104    doc.num_query_terms_matched = atoi(termfreq);
     105      }
     106
    100107      queryresult_ptr->docs.docset[doc.docnum] = doc;
    101108      queryresult_ptr->docs.docorder.push_back(doc.docnum);
Note: See TracChangeset for help on using the changeset viewer.