org.crosswire.jsword.index.lucene.analysis
Class KeyAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
org.crosswire.jsword.index.lucene.analysis.KeyAnalyzer
- All Implemented Interfaces:
- Closeable
public class KeyAnalyzer
- extends AbstractBookAnalyzer
A specialized analyzer that normalizes Strong's Numbers.
- Author:
- 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 |
Constructor Summary |
KeyAnalyzer()
Construct a default KeyAnalyzer. |
KeyAnalyzer(Book book)
Construct an KeyAnalyzer tied to a book. |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyAnalyzer
public KeyAnalyzer()
- Construct a default KeyAnalyzer.
KeyAnalyzer
public KeyAnalyzer(Book book)
- Construct an KeyAnalyzer tied to a book.
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
reusableTokenStream
public org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName,
Reader reader)
throws IOException
- Overrides:
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
- Throws:
IOException