Changeset 8692 for trunk/indexers/mgpp/text/GSDLQueryParser.cpp
- Timestamp:
- 2004-11-29T15:43:11+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/indexers/mgpp/text/GSDLQueryParser.cpp
r8242 r8692 94 94 UCArray &nearby, 95 95 bool reverse) { 96 UCArray NEARBY; SetCStr(NEARBY, "NEAR" );97 UCArray WITHIN; SetCStr(WITHIN, "WITHIN" );96 UCArray NEARBY; SetCStr(NEARBY, "NEAR", 4); 97 UCArray WITHIN; SetCStr(WITHIN, "WITHIN", 6); 98 98 99 99 if (nearby == NEARBY) { // no modifier … … 123 123 while (here != end) { 124 124 size = size*10 + (*here-'0'); 125 here++;125 ++here; 126 126 } 127 127 if (within) { … … 263 263 UCArray near_string; 264 264 while (ParseLexEl (here, end, el)) { 265 if (el.lexType == TermE || el.lexType == IntegerE) { 265 // cant have AND, OR, NOT in square brackets, so assume they are words 266 if (el.lexType == TermE || el.lexType == IntegerE || el.lexType == AndOpE || el.lexType == OrOpE || el.lexType == NotOpE) { 266 267 TermNode termNode; 267 268 termNode.term = el.text;
Note:
See TracChangeset
for help on using the changeset viewer.