Ignore:
Timestamp:
2008-11-10T10:30:25+13:00 (15 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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.