com.jivesoftware.util.search
Class CzechAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
com.jivesoftware.util.search.CzechAnalyzer
- All Implemented Interfaces:
- JiveAnalyzer
public final class CzechAnalyzer
- extends org.apache.lucene.analysis.Analyzer
- implements JiveAnalyzer
Analyzer for Czech language. Supports an external list of stopwords (words that
will not be indexed at all).
A default set of stopwords is used unless an alternative list is specified, the
exclusion list is empty by default.
Field Summary |
static java.lang.String[] |
STOP_WORDS
List of typical stopwords. |
Constructor Summary |
CzechAnalyzer()
Builds an analyzer. |
CzechAnalyzer(java.lang.String[] stopwords)
Builds an analyzer with the given stop words. |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
getPositionIncrementGap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STOP_WORDS
public static final java.lang.String[] STOP_WORDS
- List of typical stopwords.
CzechAnalyzer
public CzechAnalyzer()
- Builds an analyzer.
CzechAnalyzer
public CzechAnalyzer(java.lang.String[] stopwords)
- Builds an analyzer with the given stop words.
tokenStream
public final org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName,
java.io.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 build from a StandardTokenizer filtered with
StandardFilter, StopFilter, GermanStemFilter and LowerCaseFilter
setDisableSynonyms
public void setDisableSynonyms(boolean disabled)
- Specified by:
setDisableSynonyms
in interface JiveAnalyzer
isSynonymsDisabled
public boolean isSynonymsDisabled()
- Specified by:
isSynonymsDisabled
in interface JiveAnalyzer
setDisableStemming
public void setDisableStemming(boolean disabled)
- Specified by:
setDisableStemming
in interface JiveAnalyzer
isStemmingDisabled
public boolean isStemmingDisabled()
- Specified by:
isStemmingDisabled
in interface JiveAnalyzer
Copyright © 1999-2006 Jive Software.