public class LuceneAnalyzerUtil
extends Analyzer
Modifier and Type | Class and Description |
---|---|
static class |
LuceneAnalyzerUtil.StemFilterType |
Constructor and Description |
---|
LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType,
boolean useStopFilter)
Creates an analyzer instance based on Lucene default stopword set if @param useStopFilter is set to true
|
LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType,
java.util.List<java.lang.String> stopWords,
boolean addToDefault)
Creates an analyzer instance based on user provided stop words.
|
Modifier and Type | Method and Description |
---|---|
protected TokenStreamComponents |
createComponents(java.lang.String fieldName) |
public LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType, boolean useStopFilter)
public LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType, java.util.List<java.lang.String> stopWords, boolean addToDefault)
Copyright © 2018 The Apache Software Foundation