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
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 |
GovDocTermNormalizer
public GovDocTermNormalizer()
- Constructs a GovDocTermNormalizer object
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 informationsection
- the section name for the inifileindexInfo
- 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.