Class CultureInvariantWhitespaceAnalyzer
A whitespace analyzer that can be configured to be culture invariant
public sealed class CultureInvariantWhitespaceAnalyzer : Analyzer, IDisposable
- Inheritance
-
AnalyzerCultureInvariantWhitespaceAnalyzer
- Implements
- Inherited Members
-
Analyzer.GLOBAL_REUSE_STRATEGYAnalyzer.PER_FIELD_REUSE_STRATEGYAnalyzer.Dispose()Analyzer.Strategy
Remarks
Includes a LetterOrDigitTokenizer which only includes letters or digits along with Lucene.Net.Analysis.Miscellaneous.ASCIIFoldingFilter and Lucene.Net.Analysis.Core.LowerCaseFilter
Constructors
CultureInvariantWhitespaceAnalyzer()
Creates an instance of CultureInvariantWhitespaceAnalyzer
public CultureInvariantWhitespaceAnalyzer()
CultureInvariantWhitespaceAnalyzer(bool, bool)
Creates an instance of CultureInvariantWhitespaceAnalyzer
public CultureInvariantWhitespaceAnalyzer(bool caseInsensitive, bool ignoreLanguageAccents)
Parameters
caseInsensitive
boolWhether or not the analyzer is case sensitive
ignoreLanguageAccents
boolWhether or not to ignore language accents
Methods
CreateComponents(string, TextReader)
Creates the analyzer components
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
Parameters
fieldName
stringThe field name
reader
TextReaderThe TextReader
Returns
- TokenStreamComponents
The Lucene.Net.Analysis.TokenStreamComponents