public class StemmingAnalyzer extends TextAnalyzer
TextAnalyzer
that takes in a set of stop words and a stem filter as a function to apply to the text being
analyzed.Constructor and Description |
---|
StemmingAnalyzer(boolean indexing,
com.google.common.base.Function<org.apache.lucene.analysis.TokenStream,org.apache.lucene.analysis.TokenStream> stemmingFilter,
com.google.common.base.Function<org.apache.lucene.analysis.TokenStream,org.apache.lucene.analysis.TokenStream> stopWordFilter) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName) |
isIndexing, wrapStreamForIndexing, wrapStreamForWilcardSearchSupport
public StemmingAnalyzer(boolean indexing, com.google.common.base.Function<org.apache.lucene.analysis.TokenStream,org.apache.lucene.analysis.TokenStream> stemmingFilter, com.google.common.base.Function<org.apache.lucene.analysis.TokenStream,org.apache.lucene.analysis.TokenStream> stopWordFilter)
public final org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
createComponents
in class TextAnalyzer
Copyright © 2002-2024 Atlassian. All Rights Reserved.