public class LuceneAnalyzerUtil
extends org.apache.lucene.analysis.Analyzer
Modifier and Type | Class and Description |
---|---|
static class |
LuceneAnalyzerUtil.StemFilterType |
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
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,
List<String> stopWords,
boolean addToDefault)
Creates an analyzer instance based on user provided stop words.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
public LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType, boolean useStopFilter)
public LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType, List<String> stopWords, boolean addToDefault)
Copyright © 2016 The Apache Software Foundation