com.jivesoftware.util.search
Class PortugueseStemmingAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
com.jivesoftware.util.search.PortugueseStemmingAnalyzer
- All Implemented Interfaces:
- JiveAnalyzer
public final class PortugueseStemmingAnalyzer
- extends org.apache.lucene.analysis.Analyzer
- implements JiveAnalyzer
An Portuguese analyzer for Lucene based upon the standard analyzer that supports stemming
of portuguese words.
Field Summary |
static java.lang.String[] |
STOP_WORDS
An array containing some common Portuguese words that are usually not useful for searching. |
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
- An array containing some common Portuguese words that are usually not useful for searching.
PortugueseStemmingAnalyzer
public PortugueseStemmingAnalyzer()
- Builds an analyzer.
PortugueseStemmingAnalyzer
public PortugueseStemmingAnalyzer(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)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
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.