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
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DDCTermNormalizer
public DDCTermNormalizer()
- Constructs a DDCTermNormalizer 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 periods and
alpha-numerics.
- Specified by:
- filterit in interface TermNormalizer
- Parameters:
query
- the incoming query term- Returns:
- String array object containing the filtered term.