Changeset 11002 for trunk/gsdl
- Timestamp:
- 2005-12-19T10:59:40+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/mgqueryfilter.cpp
r9937 r11002 29 29 #include <assert.h> 30 30 #include "mgsearch.h" 31 #include "phrases.h" 31 32 32 33 /////////////////////////////// … … 122 123 if (tmpterms.size() > 1) { 123 124 phrases.push_back (tmpterms); 124 tmpterms.erase (tmpterms.begin(), tmpterms.end()); 125 } 125 } 126 tmpterms.erase (tmpterms.begin(), tmpterms.end()); 127 126 128 foundquote = false; 127 129 foundbreak = true; … … 130 132 // found a break between terms 131 133 if (!foundbreak && !start) { 132 if (foundquote) 134 if (foundquote) { 133 135 tmpterms.push_back (orgterms[termcount]); 136 } 134 137 ++termcount; 135 138 } … … 472 475 // contains at least 2 double quotes (not very scientific but 473 476 // then neither is the rest of the mg phrase searching functionality :-) 474 if (countchar ((*query_here).querystring.begin(), (*query_here).querystring.end(), '"') > 1) { 477 //if (countchar ((*query_here).querystring.begin(), (*query_here).querystring.end(), '"') > 1) { 478 479 // [kjdon 12/2005] we don't want to do a phrase search if the only phrases are single words, so we'll parse out the phrases properly here 480 text_tarray phrases; 481 get_phrases((*query_here).querystring, phrases); 482 483 if (phrases.size() > 0) { 475 484 (*query_here).search_type = 0; 476 485
Note:
See TracChangeset
for help on using the changeset viewer.