Changeset 20939

Show
Ignore:
Timestamp:
13.11.2009 12:11:42 (10 years ago)
Author:
mdewsnip
Message:

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

Files:
1 modified

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");