org.dspace.search
Class DSNonStemmingAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.ReusableAnalyzerBase
org.apache.lucene.analysis.StopwordAnalyzerBase
org.dspace.search.DSAnalyzer
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 classes/interfaces inherited from class org.apache.lucene.analysis.ReusableAnalyzerBase |
org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents |
| 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.apache.lucene.analysis.StopwordAnalyzerBase |
getStopwordSet, 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 |
DSNonStemmingAnalyzer
public DSNonStemmingAnalyzer(org.apache.lucene.util.Version matchVersion)
- Builds an analyzer
- Parameters:
matchVersion - Lucene version to match
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 © 2011 DuraSpace. All Rights Reserved.