Changeset 4217


Ignore:
Timestamp:
2003-05-01T14:32:25+12:00 (21 years ago)
Author:
kjdon
Message:

now we pass on syntax_error from mgpp parsing back to the mgppqueryfilter via queryresultsclass

Location:
trunk/gsdl/src/colservr
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mgppsearch.cpp

    r3197 r4217  
    135135  QueryNode *queryTree = NULL;
    136136  queryTree = ParseQuery(queryArray, defaultBoolCombine, defaultStemMethod);
    137    
     137  if (queryTree == NULL) { // syntax error
     138    queryresult.syntax_error = true;
     139    return true; // should we return true or false?
     140  }
    138141  UCArray level;
    139142  UCArrayClear(level);
  • trunk/gsdl/src/colservr/queryinfo.cpp

    r4193 r4217  
    319319  docs_matched = 0;
    320320  is_approx = Exact;
    321 
     321  syntax_error = false;
    322322  postprocessed = false;
    323323
     
    330330  docs_matched = q.docs_matched;
    331331  is_approx = q.is_approx;
    332 
     332  syntax_error = q.syntax_error;
    333333  postprocessed = q.postprocessed;
    334  
     334
    335335  docs = q.docs;
    336336  terms = q.terms;
  • trunk/gsdl/src/colservr/queryinfo.h

    r4193 r4217  
    168168  isapprox is_approx;
    169169  //  bool is_approx;   // not available on all versions of mg
    170 
     170  bool syntax_error; // whether the query string was invalid
    171171  bool postprocessed; // whether this record has been post-processed
    172172 
Note: See TracChangeset for help on using the changeset viewer.