org.crosswire.jsword.index.lucene.analysis
Class AbstractBookAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- ArabicLuceneAnalyzer, ChineseLuceneAnalyzer, ConfigurableSnowballAnalyzer, CzechLuceneAnalyzer, EnglishLuceneAnalyzer, GermanLuceneAnalyzer, GreekLuceneAnalyzer, KeyAnalyzer, MorphologyAnalyzer, PersianLuceneAnalyzer, SimpleLuceneAnalyzer, SmartChineseLuceneAnalyzer, StrongsNumberAnalyzer, ThaiLuceneAnalyzer, XRefAnalyzer
public abstract class AbstractBookAnalyzer
- extends org.apache.lucene.analysis.Analyzer
Base class for Analyzers. Note: All analyzers configured in
AnalyzerFactory.properties should be of this type
- Author:
- sijo cherian [sijocherian at yahoo dot com], DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
Fields inherited from class org.apache.lucene.analysis.Analyzer |
overridesTokenStreamMethod |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream, tokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
book
protected Book book
- The book against which analysis is performed.
stopSet
protected Set<?> stopSet
doStopWords
protected boolean doStopWords
doStemming
protected boolean doStemming
AbstractBookAnalyzer
public AbstractBookAnalyzer()
AbstractBookAnalyzer
public AbstractBookAnalyzer(Book book)
setBook
public void setBook(Book newBook)
- The book for which analysis is being performed.
- Parameters:
newBook
-
getBook
public Book getBook()
- Returns:
- the book for which analysis is being performed.
setDoStopWords
public void setDoStopWords(boolean doIt)
getDoStopWords
public boolean getDoStopWords()
setStopWords
public void setStopWords(Set<?> stopWords)
setDoStemming
public void setDoStemming(boolean stemming)