public class LuteceFrenchAnalyzer
extends org.apache.lucene.analysis.Analyzer
FrenchAnalyzer, adding ElisionFilter and
ASCIIFoldingFilter. StandardTokenizerElisionFilterStandardFilterStopFilterASCIIFoldingFilterLowerCaseFilterFrenchAnalyzer,
ElisionFilter,
ASCIIFoldingFilter,
Analyzerorg.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents| Modifier and Type | Field and Description |
|---|---|
static String[] |
FRENCH_STOP_WORDS
Extended list of typical French stopwords.
|
| Constructor and Description |
|---|
LuteceFrenchAnalyzer()
Builds an analyzer with the default stop words (
FRENCH_STOP_WORDS). |
LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer with the default stop words (
FRENCH_STOP_WORDS). |
LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion,
File stopwords)
Builds an analyzer with the given stop words.
|
LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion,
String[] stopwords)
Builds an analyzer with the given stop words.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
public static final String[] FRENCH_STOP_WORDS
public LuteceFrenchAnalyzer()
FRENCH_STOP_WORDS).public LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion)
FRENCH_STOP_WORDS).matchVersion - the versionpublic LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion,
String[] stopwords)
matchVersion - the versionstopwords - the stop wordspublic LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion,
File stopwords)
throws IOException
matchVersion - the versionstopwords - the stop wordsIOException - io exceptionCopyright © 2014 Mairie de Paris. All rights reserved.