org.crosswire.jsword.index.lucene.analysis
Class GreekLuceneAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
          extended by 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 [sijocherian at yahoo dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.

Field Summary
private  org.apache.lucene.util.Version matchVersion
           
 
Fields inherited from class org.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
book, doStemming, doStopWords, stopSet
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
GreekLuceneAnalyzer()
           
 
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.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
getBook, getDoStopWords, setBook, setDoStemming, setDoStopWords, setStopWords
 
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
 

Field Detail

matchVersion

private final org.apache.lucene.util.Version matchVersion
Constructor Detail

GreekLuceneAnalyzer

public GreekLuceneAnalyzer()
Method Detail

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

Copyright ? 2003-2011