Ignore:
Timestamp:
2006-09-27T15:24:19+12:00 (18 years ago)
Author:
kjdon
Message:

Accent Folding patch, thanks to Juan Grigera. Added AccentFold filteroption

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/queryfilter.cpp

    r12770 r12871  
    8888  query.casefolding = (filterOptions["Casefold"].defaultValue == "true");
    8989  query.stemming = (filterOptions["Stem"].defaultValue == "true");
     90  query.accentfolding = (filterOptions["AccentFold"].defaultValue == "true");
    9091  query.maxdocs = filterOptions["Maxdocs"].defaultValue.getint();
    9192  query.level = filterOptions["Level"].defaultValue;
     
    118119      query.casefolding = (filterOptions["Casefold"].defaultValue == "true");
    119120      query.stemming = (filterOptions["Stem"].defaultValue == "true");
     121      query.accentfolding = (filterOptions["AccentFold"].defaultValue == "true");
    120122      query.level = filterOptions["Level"].defaultValue;
    121123      query.filterstring = filterOptions["FilterString"].defaultValue;  // Lucene specific
     
    142144    } else if ((*options_here).name == "Stem") {
    143145      query.stemming = ((*options_here).value == "true");
     146    } else if ((*options_here).name == "AccentFold") {
     147      query.accentfolding = ((*options_here).value == "true");
    144148    } else if ((*options_here).name == "Index"&& (*options_here).value !="") {
    145149      query.index = (*options_here).value;
     
    265269  filterOptions["Stem"] = filtopt;
    266270
     271  // -- onePerTerm  AccentFold           boolean
     272  filtopt.clear();
     273  filtopt.name = "AccentFold";
     274  filtopt.type = FilterOption_t::booleant;
     275  filtopt.repeatable = FilterOption_t::onePerTerm;
     276  filtopt.defaultValue = "false";
     277  filtopt.validValues.push_back("false");
     278  filtopt.validValues.push_back("true");
     279  filterOptions["AccentFold"] = filtopt;
     280 
    267281  // -- onePerTerm  Index          enumerated
    268282  filtopt.clear();
Note: See TracChangeset for help on using the changeset viewer.