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

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.analysis.el.GreekAnalyzer myAnalyzer
           
 
Fields inherited from class org.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
book, doStemming, doStopWords, naturalLanguage, stopSet
 
Constructor Summary
GreekLuceneAnalyzer()
           
 
Method Summary
 void setDoStopWords(boolean doIt)
           
 void setStopWords(String[] stopWords)
           
 org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
           
 
Methods inherited from class org.crosswire.jsword.index.lucene.analysis.AbstractBookAnalyzer
getBook, getDoStopWords, getNaturalLanguage, setBook, setDoStemming, setNaturalLanguage
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myAnalyzer

private org.apache.lucene.analysis.el.GreekAnalyzer myAnalyzer
Constructor Detail

GreekLuceneAnalyzer

public GreekLuceneAnalyzer()
Method Detail

tokenStream

public final org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
                                                                Reader reader)
Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer

setStopWords

public void setStopWords(String[] stopWords)
Overrides:
setStopWords in class AbstractBookAnalyzer

setDoStopWords

public void setDoStopWords(boolean doIt)
Overrides:
setDoStopWords in class AbstractBookAnalyzer

Copyright ยจ 2003-2007