Changeset 8715


Ignore:
Timestamp:
2004-12-01T13:53:37+13:00 (19 years ago)
Author:
kjdon
Message:

fized a bug with phrase searching onn segmented collections

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/documentaction.cpp

    r7441 r8715  
    10291029  DocumentResponse_t docresponse;
    10301030  comerror_t err;
    1031 
    10321031  if (hastxt == 1) {
    10331032
     
    10991098    format_querystring (formattedstring, args.getintarg("b"), segment);
    11001099    set_queryfilter_options (request, formattedstring, args);
     1100    args["q"] = formattedstring; // need to set this here for phrase
     1101                   // highlighting, where we look at the querystring
    11011102    collectproto->filter (args["c"], request, queryresponse, err, logout);
    11021103    if (err != noError) {
     
    11101111    }
    11111112  }
    1112 
    11131113
    11141114  format_t *formatlistptr = new format_t();
  • trunk/gsdl/src/recpt/querytools.cpp

    r8357 r8715  
    177177      (*here >= 0xf900 && *here <= 0xfa2d)) {
    178178    // Chinese character
    179     if (space) formattedstring.push_back (0x200b);
     179    if (!space) formattedstring.push_back (0x200b); // zero width space
    180180    formattedstring.push_back (*here);
    181181    formattedstring.push_back (0x200b);
    182182    space = true;
    183183      } else {
     184   
    184185    // non-Chinese character
    185186    formattedstring.push_back (*here);
    186187    space = false;
     188   
    187189      }
    188190   
Note: See TracChangeset for help on using the changeset viewer.