net.sf.zekr.engine.search
Class SearchInfo
java.lang.Object
net.sf.zekr.engine.search.SearchInfo
public class SearchInfo
- extends java.lang.Object
This class holds some language-specific info for replacing non-searchable or equivalent characters.
- Author:
- Mohsen Saboorian
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchInfo
public SearchInfo()
addReplacePattern
public void addReplacePattern(java.lang.String langCode,
java.util.List replacePatternList)
addStopWord
public void addStopWord(java.lang.String langCode,
java.util.List stopWordList)
setDefaultStopWord
public void setDefaultStopWord(java.util.List defaultStopWord)
setDefaultReplacePattern
public void setDefaultReplacePattern(java.util.List defaultReplacePattern)
getReplacePattern
public java.util.Map getReplacePattern(java.lang.String langCode)
- Parameters:
langCode
- the ISO language code to search for its specific replace patterns.
- Returns:
- a
Map
of replace patterns, which maps a Pattern
to a replace String
for
the given language, or default replace patterns if no replace pattern is specified for this
language
getStopWord
public java.util.Set getStopWord(java.lang.String langCode)
- Parameters:
langCode
- the ISO language code to search for its specific replace patterns.
- Returns:
- a
Set
of stop words for the given language, or default stop words if no stopword is
specified for this language