Changeset 2692 for trunk/gsdl/src


Ignore:
Timestamp:
2001-08-10T12:15:36+12:00 (23 years ago)
Author:
kjm18
Message:

phrases now use the case and stem preference settings, they are no longer
exact phrases unless stemming and casefolding are both turned off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/GSDLQueryParser.cpp

    r2468 r2692  
    250250// expects the starting quote to have been parsed
    251251// and discarded
    252 // is now for exact phrases
     252// now phrases use the case and stem preference options
     253// ie can search for a phrase ignoring case
    253254static void ParsePhrase (UCArray::const_iterator &here,
    254255             UCArray::const_iterator end,
    255              ProxMatchQueryNode &proxNode) {
     256             ProxMatchQueryNode &proxNode,
     257             int defaultStemMethod) {
    256258  LexEl el;
    257259  bool first = true;
     
    260262      TermNode termNode;
    261263      termNode.term = el.text;
    262       //ParseTermModifiers (here, end, termNode);
     264      termNode.stemMethod = defaultStemMethod;
     265      //ParseTermModifiers (here, end, termNode, defaultStemMethod);
    263266      if (first) {
    264267    first = false;
     
    315318    }
    316319  } else if (el.lexType == QuoteE) {
    317     ParsePhrase (here, end, *proxNode);
     320    ParsePhrase (here, end, *proxNode, defaultStemMethod);
    318321    return proxNode;
    319322  }
Note: See TracChangeset for help on using the changeset viewer.