org.crosswire.jsword.index.lucene.analysis
Class LuceneAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.crosswire.jsword.index.lucene.analysis.LuceneAnalyzer
- All Implemented Interfaces:
- Closeable
public class LuceneAnalyzer
- extends org.apache.lucene.analysis.Analyzer
A specialized analyzer for Books that analyzes different fields differently.
This is book specific since it is possible that each book has specialized
search requirements.
Uses AnalyzerFactory for InstalledIndexVersion > 1.1
- Author:
- DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
Field Summary |
private org.apache.lucene.analysis.PerFieldAnalyzerWrapper |
analyzer
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
analyzer
private org.apache.lucene.analysis.PerFieldAnalyzerWrapper analyzer
LuceneAnalyzer
public LuceneAnalyzer(Book book)
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer