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,
List<String> stopWords,
boolean addToDefault)
Creates an analyzer instance based on user provided stop words.
|
Modifier and Type | Method and Description |
---|---|
protected TokenStreamComponents |
createComponents(String fieldName) |
public LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType, boolean useStopFilter)
public LuceneAnalyzerUtil(LuceneAnalyzerUtil.StemFilterType stemFilterType, List<String> stopWords, boolean addToDefault)
protected TokenStreamComponents createComponents(String fieldName)
Copyright © 2021 The Apache Software Foundation