org.dspace.search
Class DSNonStemmingAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.ReusableAnalyzerBase
          extended by org.apache.lucene.analysis.StopwordAnalyzerBase
              extended by org.dspace.search.DSAnalyzer
                  extended by org.dspace.search.DSNonStemmingAnalyzer
All Implemented Interfaces:
Closeable

public class DSNonStemmingAnalyzer
extends DSAnalyzer

Custom Lucene Analyzer that combines the standard filter, lowercase filter and stopword filter. Intentionally omits the stemming filter (which is used by DSAnalyzer)


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.analysis.ReusableAnalyzerBase
org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents
 
Field Summary
 
Fields inherited from class org.dspace.search.DSAnalyzer
matchVersion, STOP_WORDS, stopSet
 
Fields inherited from class org.apache.lucene.analysis.StopwordAnalyzerBase
stopwords
 
Constructor Summary
DSNonStemmingAnalyzer(org.apache.lucene.util.Version matchVersion)
          Builds an analyzer
 
Method Summary
protected  org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents createComponents(String fieldName, Reader reader)
          Create a token stream for this analyzer.
 
Methods inherited from class org.dspace.search.DSAnalyzer
getPositionIncrementGap
 
Methods inherited from class org.apache.lucene.analysis.StopwordAnalyzerBase
getStopwordSet, loadStopwordSet, loadStopwordSet, loadStopwordSet
 
Methods inherited from class org.apache.lucene.analysis.ReusableAnalyzerBase
initReader, reusableTokenStream, tokenStream
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPreviousTokenStream, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSNonStemmingAnalyzer

public DSNonStemmingAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer

Parameters:
matchVersion - Lucene version to match
Method Detail

createComponents

protected org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents createComponents(String fieldName,
                                                                                                 Reader reader)
Create a token stream for this analyzer. This is identical to DSAnalyzer, except it omits the stemming filter

Overrides:
createComponents in class DSAnalyzer


Copyright © 2012 DuraSpace. All Rights Reserved.