Open SiteSearch 4.1.1
Final

ORG.oclc.qnorm
Class DDCTermNormalizer

java.lang.Object
  |
  +--ORG.oclc.qnorm.DDCTermNormalizer

public class DDCTermNormalizer
extends Object
implements TermNormalizer

The DDCTermNormalizer class is the query term normalizer for Dewey Decimal Numbers. It retains only alphanumerics and periods(.) in the filtered term.

See Also:
Map

Constructor Summary
DDCTermNormalizer()
          Constructs a DDCTermNormalizer object
 
Method Summary
 String[] filterit(String query)
          Filters the incoming query term and retains only periods and alpha-numerics.
 void initNormalizer(IniFile ini, String section, Map indexInfo)
          The normalizer initialization method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDCTermNormalizer

public DDCTermNormalizer()
Constructs a DDCTermNormalizer object
Method Detail

initNormalizer

public void initNormalizer(IniFile ini,
                           String section,
                           Map indexInfo)
The normalizer initialization method.
Specified by:
initNormalizer in interface TermNormalizer
Parameters:
ini - the IniFile containing configuration information
section - the section name for the inifile
indexInfo - the Map object associated with the index.

filterit

public String[] filterit(String query)
Filters the incoming query term and retains only periods and alpha-numerics.
Specified by:
filterit in interface TermNormalizer
Parameters:
query - the incoming query term
Returns:
String array object containing the filtered term.

Open SiteSearch 4.1.1
Final