|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.analysis.Analyzer
net.sf.zekr.engine.search.lucene.ArabicAnalyzer
public class ArabicAnalyzer
Filters StandardTokenizer
with ArabicFilter
, and StopFilter
using a list of Arabic
stop words.
Field Summary | |
---|---|
static java.lang.String[] |
STOP_WORDS
An array containing some common English words that are usually not useful for searching. |
Constructor Summary | |
---|---|
ArabicAnalyzer()
Builds an analyzer with the default stop words ( STOP_WORDS ). |
|
ArabicAnalyzer(java.io.File stopwords)
Builds an analyzer with the stop words from the given file. |
|
ArabicAnalyzer(java.io.Reader stopwords)
Builds an analyzer with the stop words from the given reader. |
|
ArabicAnalyzer(java.util.Set stopWords)
Builds an analyzer with the given stop words. |
|
ArabicAnalyzer(java.lang.String[] stopWords)
Builds an analyzer with the given stop words. |
Method Summary | |
---|---|
org.apache.lucene.analysis.TokenStream |
tokenStream(java.lang.String fieldName,
java.io.Reader reader)
Constructs a StandardTokenizer filtered by a ArabicFilter and a StopFilter . |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
---|
getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] STOP_WORDS
Constructor Detail |
---|
public ArabicAnalyzer()
STOP_WORDS
).
public ArabicAnalyzer(java.util.Set stopWords)
public ArabicAnalyzer(java.lang.String[] stopWords)
public ArabicAnalyzer(java.io.File stopwords) throws java.io.IOException
java.io.IOException
WordlistLoader.getWordSet(File)
public ArabicAnalyzer(java.io.Reader stopwords) throws java.io.IOException
java.io.IOException
WordlistLoader.getWordSet(Reader)
Method Detail |
---|
public org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
StandardTokenizer
filtered by a ArabicFilter
and a StopFilter
.
tokenStream
in class org.apache.lucene.analysis.Analyzer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |