Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.util.search
Class CzechAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by 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.
 
Method Summary
 boolean isStemmingDisabled()
           
 boolean isSynonymsDisabled()
           
 void setDisableStemming(boolean disabled)
           
 void setDisableSynonyms(boolean disabled)
           
 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.
 
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
 

Field Detail

STOP_WORDS

public static final java.lang.String[] STOP_WORDS
List of typical stopwords.

Constructor Detail

CzechAnalyzer

public CzechAnalyzer()
Builds an analyzer.


CzechAnalyzer

public CzechAnalyzer(java.lang.String[] stopwords)
Builds an analyzer with the given stop words.

Method Detail

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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.