C# Class Lucene.Net.Analysis.Util.StopwordAnalyzerBase

Base class for Analyzers that need to make use of stopword sets.
Inheritance: Analyzer
Exibir arquivo Open project: apache/lucenenet

Protected Properties

Property Type Description
matchVersion LuceneVersion
stopwords CharArraySet

Protected Methods

Method Description
LoadStopwordSet ( FileInfo stopwords, LuceneVersion matchVersion ) : CharArraySet

Creates a CharArraySet from a file.

LoadStopwordSet ( TextReader.TextReader stopwords, LuceneVersion matchVersion ) : CharArraySet

Creates a CharArraySet from a file.

LoadStopwordSet ( bool ignoreCase, Type aClass, string resource, string comment ) : CharArraySet

Creates a CharArraySet from a file resource associated with a class. (See Class#getResourceAsStream(String)).

StopwordAnalyzerBase ( LuceneVersion version ) : System

Creates a new Analyzer with an empty stopword set

StopwordAnalyzerBase ( LuceneVersion version, CharArraySet stopwords ) : System

Creates a new instance initialized with the given stopword set

Method Details

LoadStopwordSet() protected static method

Creates a CharArraySet from a file.
/// if loading the stopwords throws an
protected static LoadStopwordSet ( FileInfo stopwords, LuceneVersion matchVersion ) : CharArraySet
stopwords System.IO.FileInfo /// the stopwords file to load ///
matchVersion LuceneVersion /// the Lucene version for cross version compatibility
return CharArraySet

LoadStopwordSet() protected static method

Creates a CharArraySet from a file.
/// if loading the stopwords throws an
protected static LoadStopwordSet ( TextReader.TextReader stopwords, LuceneVersion matchVersion ) : CharArraySet
stopwords System.IO.TextReader.TextReader /// the stopwords reader to load ///
matchVersion LuceneVersion /// the Lucene version for cross version compatibility
return CharArraySet

LoadStopwordSet() protected static method

Creates a CharArraySet from a file resource associated with a class. (See Class#getResourceAsStream(String)).
/// if loading the stopwords throws an
protected static LoadStopwordSet ( bool ignoreCase, Type aClass, string resource, string comment ) : CharArraySet
ignoreCase bool /// true if the set should ignore the case of the /// stopwords, otherwise false
aClass System.Type /// a class that is associated with the given stopwordResource
resource string /// name of the resource file associated with the given class
comment string /// comment string to ignore in the stopword file
return CharArraySet

StopwordAnalyzerBase() protected method

Creates a new Analyzer with an empty stopword set
protected StopwordAnalyzerBase ( LuceneVersion version ) : System
version LuceneVersion /// the Lucene version for cross version compatibility
return System

StopwordAnalyzerBase() protected method

Creates a new instance initialized with the given stopword set
protected StopwordAnalyzerBase ( LuceneVersion version, CharArraySet stopwords ) : System
version LuceneVersion /// the Lucene version for cross version compatibility
stopwords CharArraySet /// the analyzer's stopword set
return System

Property Details

matchVersion protected_oe property

protected LuceneVersion matchVersion
return LuceneVersion

stopwords protected_oe property

An immutable stopword set
protected CharArraySet stopwords
return CharArraySet