|
Qizx fe-4.4p2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.qizx.api.util.fulltext.DefaultFullTextFactory
public class DefaultFullTextFactory
Fulltext service provider plugged by default.
Provides a generic TextTokenizer and a standard Scorer. Might be extended in future versions to provide stemmer and thesaurus.
Constructor Summary | |
---|---|
DefaultFullTextFactory()
|
Method Summary | |
---|---|
Scorer |
createScorer()
Returns a scoring algorithm. |
Stemmer |
getStemmer(String languageCode)
Returns an appropriate Stemmer for the language, if any. |
Thesaurus |
getThesaurus(String uri,
String languageCode,
String relationship,
int levelMin,
int levelMax)
Returns a Thesaurus lookup driver. |
TextTokenizer |
getTokenizer(String languageCode)
Returns an instance of TextTokenizer suitable for the specified language. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFullTextFactory()
Method Detail |
---|
public TextTokenizer getTokenizer(String languageCode)
FullTextFactory
getTokenizer
in interface FullTextFactory
languageCode
- an ISO language code (e.g 'en', 'fr-CH'), or null if
no language is specified, in which case a generic tokenizer
(DefaultTextTokenizer
)
is provided.
public Stemmer getStemmer(String languageCode)
FullTextFactory
getStemmer
in interface FullTextFactory
public Thesaurus getThesaurus(String uri, String languageCode, String relationship, int levelMin, int levelMax)
FullTextFactory
getThesaurus
in interface FullTextFactory
uri
- identifier of the Thesaurus. It is the string "default" if
the default thesaurus is invoked.languageCode
- a normalized language code like "en" or "fr-CH".
A null language code is in principle not meaningful.relationship
- relationship from root word(s) to
thesaurus-equivalent words. It can be null if the relationship is
unspecified.levelMin
- minimum value of the level of a synonym. A simple synonym
has a level equal to 1.levelMax
- maximum value of the level of a synonym. A negative value
means no maximum.
public Scorer createScorer()
FullTextFactory
createScorer
in interface FullTextFactory
|
© 2010 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |