Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.util.search
Class BrazilianStemmingAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by com.jivesoftware.util.search.BrazilianStemmingAnalyzer
All Implemented Interfaces:
JiveAnalyzer

public final class BrazilianStemmingAnalyzer
extends org.apache.lucene.analysis.Analyzer
implements JiveAnalyzer

Analyzer for brazilian language. Supports an external list of stopwords (words that will not be indexed at all) and an external list of exclusions (word that will not be stemmed, but indexed).

Version:
$Id: BrazilianStemmingAnalyzer.java,v 1.0 2001/02/13 21:29:04

Field Summary
static java.lang.String[] STOP_WORDS
           
 
Constructor Summary
BrazilianStemmingAnalyzer()
          Builds an analyzer.
BrazilianStemmingAnalyzer(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)
           
 
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
Constructor Detail

BrazilianStemmingAnalyzer

public BrazilianStemmingAnalyzer()
Builds an analyzer.


BrazilianStemmingAnalyzer

public BrazilianStemmingAnalyzer(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)
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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.