Open SiteSearch 4.1.1
Final

ORG.oclc.qnorm
Class GovDocTermNormalizer

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

public class GovDocTermNormalizer
extends Object
implements TermNormalizer

The GovDocTermNormalizer class is the query term normalizer for Government Document Numbers. It retains only alphanumerics and collapses any data within parenthesis. For example: 124.abc(xyz) returns 124abc.

See Also:
Map

Constructor Summary
GovDocTermNormalizer()
          Constructs a GovDocTermNormalizer object
 
Method Summary
 String[] filterit(String query)
          Filters the incoming query term and retains only alphanumeric characters and collapses any characters withing parenthesis.
 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

GovDocTermNormalizer

public GovDocTermNormalizer()
Constructs a GovDocTermNormalizer 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 alphanumeric characters and collapses any characters withing parenthesis.
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