Class FrenchAnalyzer
Analyzer for French language.
Supports an external list of stopwords (words that will not be indexed at all) and an external list of exclusions (word that will not be stemmed, but indexed). A default set of stopwords is used unless an alternative list is specified, but the exclusion list is empty by default.
You must specify the required LuceneVersion compatibility when creating FrenchAnalyzer:
- As of 3.6, FrenchLightStemFilter is used for less aggressive stemming.
- As of 3.1, Snowball stemming is done with SnowballFilter, LowerCaseFilter is used prior to StopFilter, and ElisionFilter and Snowball stopwords are used by default.
- As of 2.9, StopFilter preserves position increments
NOTE: This class uses the same LuceneVersion dependent settings as StandardAnalyzer.
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class FrenchAnalyzer : StopwordAnalyzerBase, IDisposable
Constructors
Name | Description |
---|---|
FrenchAnalyzer(LuceneVersion) | Builds an analyzer with the default stop words (DefaultStopSet). |
FrenchAnalyzer(LuceneVersion, CharArraySet) | Builds an analyzer with the given stop words |
FrenchAnalyzer(LuceneVersion, CharArraySet, CharArraySet) | Builds an analyzer with the given stop words |
Fields
Name | Description |
---|---|
DEFAULT_ARTICLES | Default set of articles for ElisionFilter |
DEFAULT_STOPWORD_FILE | File containing default French stopwords. |
Properties
Name | Description |
---|---|
DefaultStopSet | Returns an unmodifiable instance of the default stop-words set. |
Methods
Name | Description |
---|---|
CreateComponents(String, TextReader) | Creates TokenStreamComponents used to tokenize all the text in the provided System.IO.TextReader. |