Changeset 4824


Ignore:
Timestamp:
2003-06-27T10:12:16+12:00 (21 years ago)
Author:
kjdon
Message:

when parsing the query params, we now set the level to the default level in case there is no level info in the cgi args.

File:
1 edited

Legend:

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

    r4738 r4824  
    8989  query.stemming = (filterOptions["Stem"].defaultValue == "true");
    9090  query.maxdocs = filterOptions["Maxdocs"].defaultValue.getint();
    91   query.level = "";
     91  query.level = filterOptions["Level"].defaultValue;
    9292  OptionValue_tarray::const_iterator options_here = request.filterOptions.begin();
    9393  OptionValue_tarray::const_iterator options_end = request.filterOptions.end();
     
    114114      query.casefolding = (filterOptions["Casefold"].defaultValue == "true");
    115115      query.stemming = (filterOptions["Stem"].defaultValue == "true");
    116       query.level = "";
     116      query.level = filterOptions["Level"].defaultValue;
    117117      // "all", needed when combining queries where the document results are needed
    118118      if (need_matching_docs (request.filterResultOptions)) query.maxdocs = -1;
Note: See TracChangeset for help on using the changeset viewer.