Changeset 310 for trunk/gsdl/src


Ignore:
Timestamp:
1999-06-30T10:05:02+12:00 (25 years ago)
Author:
rjmcnab
Message:

Added a couple of fields to ResultDocInfo_t to handle a special
version of mg.

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

Legend:

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

    r272 r310  
    1212/*
    1313   $Log$
     14   Revision 1.10  1999/06/29 22:05:01  rjmcnab
     15   Added a couple of fields to ResultDocInfo_t to handle a special
     16   version of mg.
     17
    1418   Revision 1.9  1999/06/16 02:01:22  sjboddie
    1519   Few changes to get getParents filter option to return metadata of parents
     
    167171  OID.clear ();
    168172  ranking = 0;
     173  num_terms_matched = 0;
     174  query_phrase_match = false;
    169175  docFreq.erase(docFreq.begin(), docFreq.end());
    170176  metadata.erase(metadata.begin(), metadata.end());
     
    173179ResultDocInfo_t &ResultDocInfo_t::operator=(const ResultDocInfo_t &x) {
    174180  OID=x.OID;
    175   ranking=x.ranking;
     181  ranking=x.ranking;
     182  num_terms_matched=x.num_terms_matched;
     183  query_phrase_match = x.query_phrase_match;
    176184  docFreq=x.docFreq;
    177185  metadata=x.metadata;
  • trunk/gsdl/src/recpt/comtypes.h

    r272 r310  
    260260
    261261  text_t OID;
    262   int ranking; // 0 if not requested
     262  int ranking;             // 0 if not requested (real ranking*10000)
     263  int num_terms_matched;   // not available on all versions of mg
     264  bool query_phrase_match; // not available on all versions of mg
     265
    263266  vector<int> docFreq; // empty if not requested
    264267  MetadataInfo_tarray metadata; // empty if not requested
     
    281284
    282285  int numDocs;
    283   bool isApprox;
     286  bool isApprox; // some versions of mg might be more 'approximate' than others :-)
    284287  TermInfo_tarray termInfo; // empty if not requested
    285288  ResultDocInfo_tarray docInfo; // empty if not requested
Note: See TracChangeset for help on using the changeset viewer.