Class ClassicAnalyzer
Filters ClassicTokenizer with ClassicFilter, LowerCaseFilter and StopFilter, using a list of English stop words.
You must specify the required LuceneVersion compatibility when creating ClassicAnalyzer:
- As of 3.1, StopFilter correctly handles Unicode 4.0 supplementary characters in stopwords
- As of 2.9, StopFilter preserves position increments
- As of 2.4, Tokens incorrectly identified as acronyms are corrected (see LUCENE-1068)
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class ClassicAnalyzer : StopwordAnalyzerBase, IDisposable
Constructors
Name | Description |
---|---|
ClassicAnalyzer(LuceneVersion) | Builds an analyzer with the default stop words (STOP_WORDS_SET). |
ClassicAnalyzer(LuceneVersion, CharArraySet) | Builds an analyzer with the given stop words. |
ClassicAnalyzer(LuceneVersion, TextReader) | Builds an analyzer with the stop words from the given reader. |
Fields
Name | Description |
---|---|
DEFAULT_MAX_TOKEN_LENGTH | Default maximum allowed token length |
STOP_WORDS_SET | An unmodifiable set containing some common English words that are usually not useful for searching. |
Properties
Name | Description |
---|---|
MaxTokenLength | Gets or sets maximum allowed token length. If a token is seen that exceeds this length then it is discarded. This setting only takes effect the next time tokenStream or tokenStream is called. |
Methods
Name | Description |
---|---|
CreateComponents(String, TextReader) |