Changeset 823 for trunk


Ignore:
Timestamp:
1999-12-13T15:24:34+13:00 (24 years ago)
Author:
davidb
Message:

Data fields for cross collection searching (CCS)

Support for multiple meta-data entries for same document/section.

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

Legend:

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

    r763 r823  
    2828/*
    2929   $Log$
     30   Revision 1.22  1999/12/13 02:24:33  davidb
     31   Data fields for cross collection searching (CCS)
     32
     33   Support for multiple meta-data entries for same document/section.
     34
    3035   Revision 1.21  1999/11/01 22:00:50  sjboddie
    3136   added assignment operator for FilterResponse_t
     
    125130  isPublic=false;
    126131  isBeta=false;
     132  languages.erase(languages.begin(), languages.end());
     133  ccsCols.erase(ccsCols.begin(), ccsCols.end());
    127134  buildDate=0;
    128135  numDocs=0;
     
    130137  numBytes=0;
    131138  format.erase(format.begin(), format.end());
     139  building.erase(format.begin(), format.end());
    132140  receptionist.clear();
    133141}
     
    289297  docFreq.erase(docFreq.begin(), docFreq.end());
    290298  metadata.erase(metadata.begin(), metadata.end());
     299  classifier_metadata_type.erase(classifier_metadata_type.begin(),
     300                 classifier_metadata_type.end());
     301  classifier_metadata_offset = 0;
     302 
    291303}
    292304
  • trunk/gsdl/src/recpt/comtypes.h

    r763 r823  
    7272//   isBeta         [3]  IMPLICIT BOOLEAN,    -- beta if still under development
    7373//   buildDate      [4]  IMPLICIT GeneralizedTime,
    74 //   languages      [5]  IMPLICIT StringSet,  -- languages in the collection
    75 //   numDocs        [6]  IMPLICIT INTEGER,
    76 //   numWords       [7]  IMPLICIT INTEGER OPTIONAL,
    77 //   numBytes       [8]  IMPLICIT INTEGER OPTIONAL
    78 //   collectionmeta [9]  IMPLICIT StringSet
    79 //   format         [10] IMPLICIT StringSet
    80 //   building       [11] IMPLICIT StringSet
    81 //   receptionist   [12] IMPLICIT GeneralString
     74//   ccsCols        [5]  IMPLICIT StringSet,  -- collections that form cross-col search
     75//   languages      [6]  IMPLICIT StringSet,  -- languages in the collection
     76//   numDocs        [7]  IMPLICIT INTEGER,
     77//   numWords       [8]  IMPLICIT INTEGER OPTIONAL,
     78//   numBytes       [9]  IMPLICIT INTEGER OPTIONAL
     79//   collectionmeta [10] IMPLICIT StringSet
     80//   format         [11] IMPLICIT StringSet
     81//   building       [12] IMPLICIT StringSet
     82//   receptionist   [13] IMPLICIT GeneralString
    8283// }
    8384struct ColInfoResponse_t {
     
    9091  unsigned long buildDate;
    9192  text_tarray languages;
     93  text_tarray ccsCols;    // empty if collection does not use cross-collection searching
    9294  unsigned long numDocs;  // 0 if not known
    9395  unsigned long numWords; // 0 if not known
     
    284286//   ranking  [1] IMPLICIT INTEGER,             -- 0 if not requested, range 0-10000
    285287//   docFreq  [2] IMPLICIT SEQUENCE OF INTEGER, -- empty if not requested
    286 //   metadata [3] IMPLICIT SEQUENCE OF MetadataInfo -- no longer a SEQUENCE (SET maybe??)
     288//   metadata [3] IMPLICIT SEQUENCE OF MetadataInfo, -- no longer a SEQUENCE (SET maybe??)
     289//   classifier_metadata_type   [4] IMPLICIT GeneralString,       -- empty if not requested
     290//   classifier_metadata_offset [5] IMPLICIT INTEGER,             -- 0 if not requested
    287291// }
    288292struct ResultDocInfo_t {
     
    296300  int num_phrase_match;    // not available on all versions of mg
    297301
    298   vector<int> docFreq; // empty if not requested
    299   MetadataInfo_tmap metadata; // empty if not requested
     302  vector<int> docFreq;           // empty if not requested
     303  MetadataInfo_tmap metadata;    // empty if not requested
     304
     305  text_t classifier_metadata_type;        // empty if not requested
     306  int    classifier_metadata_offset;      // 0 if not requested
    300307
    301308  ResultDocInfo_t &operator=(const ResultDocInfo_t &x);
Note: See TracChangeset for help on using the changeset viewer.