Ignore:
Timestamp:
11/13/09 12:11:42 (11 years ago)
Author:
mdewsnip
Message:

Now uses the "rank" attributes returned from Lucene searches for the [DocRank] values.

File:
1 edited

Legend:

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

    r20733 r20939  
    9696      doc.clear();
    9797      doc.docid = id;
    98       doc.docweight = qrpack_ptr->match_count;
     98
     99      char* docrank = get_attribute(attributes, "rank");
     100      if (docrank != NULL)
     101      {
     102    doc.docweight = atof(docrank);
     103      }
    99104
    100105      char* termfreq = get_attribute(attributes, "termfreq");
Note: See TracChangeset for help on using the changeset viewer.