ORG.oclc.qnorm
Class NewtonDbBaseTermNormalizer
java.lang.Object
|
+--ORG.oclc.qnorm.BaseTermNormalizer
|
+--ORG.oclc.qnorm.NewtonDbBaseTermNormalizer
- public class NewtonDbBaseTermNormalizer
- extends BaseTermNormalizer
- implements TermNormalizer
The NewtonDbBaseTermNormalizer class is the default query term
filter class for locally mounted newton databases.
The inifile parameters this method recognizes are:
collapseThe list of characters to collapse from
the term, where the default list, if not specified is:
.,;:<>{}=!()+%$\"@[]`|~/'^
trimTerma flag indicating whether to trim trailing
spaces from the input term where the default is true
- See Also:
Map
Method Summary |
String[] |
filterit(String query)
Filters the incoming query for characters that the newton
search engine will not recognize in query terms. |
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 |
collapseChars
protected String collapseChars
- String of characters to collapse from the input.
delimitChars
protected String delimitChars
- String of characters to that delimit words.
NewtonDbBaseTermNormalizer
public NewtonDbBaseTermNormalizer()
- Constructs a NewtonDbBaseTermNormalizer 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 for characters that the newton
search engine will not recognize in query terms.
- Specified by:
- filterit in interface TermNormalizer
- Parameters:
query
- the incoming query term- Returns:
- String[] containing the filtered term.