public class KeyAnalyzer extends AbstractBookAnalyzer
The GNU Lesser General Public License for details.
book, doStemming, doStopWords, stopSet
Constructor and Description |
---|
KeyAnalyzer()
Construct a default KeyAnalyzer.
|
KeyAnalyzer(Book book)
Construct an KeyAnalyzer tied to a book.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.TokenStream |
reusableTokenStream(String fieldName,
Reader reader) |
org.apache.lucene.analysis.TokenStream |
tokenStream(String fieldName,
Reader reader) |
getBook, getDoStopWords, setBook, setDoStemming, setDoStopWords, setStopWords
public KeyAnalyzer()
public KeyAnalyzer(Book book)
book
- the bookpublic org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class org.apache.lucene.analysis.Analyzer
public org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName, Reader reader) throws IOException
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
IOException