Changeset 12771


Ignore:
Timestamp:
2006-09-18T15:25:40+12:00 (18 years ago)
Author:
mdewsnip
Message:

Changed the new "fuzziness" argument to take an integer instead of a float, since dots just make things more difficult.

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

Legend:

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

    r12770 r12771  
    431431
    432432  // "fuzziness" controls how closely the search terms must match
    433   // 1.0 = exact match, 0.1 = very inexact match (only implemented for Lucene)
     433  // 100 = exact match, 0 = very inexact match (only implemented for Lucene)
    434434  arg_ainfo.shortname = "fuzziness";
    435435  arg_ainfo.longname = "Lucene fuzziness value";
    436436  arg_ainfo.multiplechar = true;
    437437  arg_ainfo.defaultstatus = cgiarginfo::weak;
    438   arg_ainfo.argdefault = "1.0";
     438  arg_ainfo.argdefault = g_EmptyText;
    439439  arg_ainfo.savedarginfo = cgiarginfo::must;
    440440  argsinfo.addarginfo (NULL, arg_ainfo);
  • trunk/gsdl/src/recpt/querytools.cpp

    r12770 r12771  
    153153  }
    154154
    155   if (!args["fuzziness"].empty()) { // fuzziness value for lucene
     155  if (!args["fuzziness"].empty() && args["fuzziness"] != "100") { // fuzziness value for lucene
    156156    option.name = "Fuzziness";
    157     option.value = args["fuzziness"];
     157    option.value = (text_t) "0." + args["fuzziness"];
    158158    request.filterOptions.push_back (option);
    159159  }
Note: See TracChangeset for help on using the changeset viewer.