Changeset 17796

Show
Ignore:
Timestamp:
10.11.2008 10:30:25 (11 years ago)
Author:
kjdon
Message:

In lucene, if you don't specify a tag to search on then it uses the default field (text?), so for searching in ZZ field, we do need to keep teh ZZ specifier, unlike for mgpp

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/recpt/querytools.cpp

    r16980 r17796  
    632632void add_field_info(text_t &querystring, const text_t &tag, int type) { 
    633633 
    634   if (tag == "" || tag == "ZZ") return; // do nothing 
     634  if (tag == "") return; // do nothing 
     635  if (tag == "ZZ" && type == 1) return;  // mgpp doesn't use ZZ tag internally 
    635636  if (type == 1) { //mgpp 
    636637    querystring = "["+querystring+"]:"+tag; 
     
    642643 
    643644 
    644 void format_field_info_lucene(text_t &querystring, text_t tag, int argt, int argb) { 
    645   if (tag == "ZZ") tag = ""; // ZZ is a special tag meaning no tag (all fields) 
     645void format_field_info_lucene(text_t &querystring, text_t &tag, int argt, int argb) { 
     646 
    646647  int type = 2; //lucene 
    647648