Changeset 662


Ignore:
Timestamp:
1999-10-12T17:16:11+13:00 (25 years ago)
Author:
cs025
Message:

Changes made to assist in the eradication of GetEnv.

Specifically, RankedQueryInfo and BooleanQueryInfo now are sub-classes
of TextQueryInfo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/backend.h

    r655 r662  
    136136approx_weights_data;
    137137
    138 
    139 typedef struct RankedQueryInfo
     138typedef struct TextQueryInfo
     139{
     140  int stem;
     141  int options;
     142
     143  int setWordActions(int _options, int _stem)
     144  {
     145    stem = _stem;
     146    options = _options;
     147  }
     148
     149  int getWordSpecial()
     150  {
     151    return stem | (options << 1);
     152  }
     153}
     154TextQueryInfo;
     155
     156typedef struct RankedQueryInfo : public TextQueryInfo
    140157  {
    141158    int QueryFreqs;
     
    155172
    156173
    157 typedef struct BooleanQueryInfo
     174typedef struct BooleanQueryInfo : public TextQueryInfo
    158175  {
    159176    long MaxDocsToRetrieve;
     177    int  OptimiseType;
    160178  }
    161179BooleanQueryInfo;
     
    241259void RankedQuery (query_data * qd, char *Query, RankedQueryInfo * rqi);
    242260
    243 void BooleanQuery (query_data * qd, char *Query, BooleanQueryInfo * bqi,
    244            int stem_method);
     261void BooleanQuery (query_data * qd, char *Query, BooleanQueryInfo * bqi);
    245262
    246263void DocnumsQuery (query_data * qd, char *QueryLine);
Note: See TracChangeset for help on using the changeset viewer.