Show
Ignore:
Timestamp:
14.03.2013 12:46:15 (7 years ago)
Author:
kjdon
Message:

more tidying up of queryfilters. moved some stuff to the lucene class, and added 'virtual's so the right method actually gets used

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/lucenequeryfilter.cpp

    r27064 r27084  
    109109} 
    110110 
     111bool lucenequeryfilterclass::set_queryparam_field(const OptionValue_t &option, queryparamclass &query) { 
     112 
     113  if (option.name == "FilterString") { 
     114    query.filterstring = option.value; 
     115    return true; 
     116  } 
     117  if (option.name == "SortField") { 
     118    query.sortfield = option.value; 
     119    return true; 
     120  } 
     121  if (option.name == "SortOrder") { 
     122    query.sortorder = (option.value == "descending"); 
     123    return true; 
     124  } 
     125  if (option.name == "Fuzziness") { 
     126    query.fuzziness = option.value; 
     127    return true; 
     128  }  
     129  return fieldedqueryfilterclass::set_queryparam_field(option, query); 
     130} 
    111131 
    112132void lucenequeryfilterclass::filter(const FilterRequest_t &request,