org.crosswire.jsword.index.lucene.analysis
Class GreekLuceneAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
org.crosswire.jsword.index.lucene.analysis.GreekLuceneAnalyzer
- All Implemented Interfaces:
- Closeable
public class GreekLuceneAnalyzer
- extends AbstractBookAnalyzer
Uses org.apache.lucene.analysis.el.GreekAnalyzer to do lowercasing and
stopword(off by default). Stemming not implemented yet
- Author:
- Sijo Cherian
- See Also:
The GNU Lesser General Public License for details.
|
Field Summary |
private org.apache.lucene.util.Version |
matchVersion
|
| Fields inherited from class org.apache.lucene.analysis.Analyzer |
overridesTokenStreamMethod |
|
Method Summary |
org.apache.lucene.analysis.TokenStream |
reusableTokenStream(String fieldName,
Reader reader)
Returns a (possibly reused) TokenStream which tokenizes all the text
in the provided Reader. |
org.apache.lucene.analysis.TokenStream |
tokenStream(String fieldName,
Reader reader)
Creates a TokenStream which tokenizes all the text in the provided Reader. |
| 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 |
matchVersion
private final org.apache.lucene.util.Version matchVersion
GreekLuceneAnalyzer
public GreekLuceneAnalyzer()
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Creates a
TokenStream which tokenizes all the text in the provided Reader.
- Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer
- Returns:
- A
TokenStream built from a StandardTokenizer filtered with
GreekLowerCaseFilter and StopFilter
reusableTokenStream
public org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName,
Reader reader)
throws IOException
- Returns a (possibly reused)
TokenStream which tokenizes all the text
in the provided Reader.
- Overrides:
reusableTokenStream in class org.apache.lucene.analysis.Analyzer
- Returns:
- A
TokenStream built from a StandardTokenizer filtered with
GreekLowerCaseFilter and StopFilter
- Throws:
IOException