Class StopwordAnalyzerBase
Base class for Lucene.
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public abstract class StopwordAnalyzerBase : Analyzer, IDisposable
Constructors
| Improve this Doc View SourceStopwordAnalyzerBase(LuceneVersion)
Creates a new Lucene.
Declaration
protected StopwordAnalyzerBase(LuceneVersion version)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
version | the Lucene version for cross version compatibility |
StopwordAnalyzerBase(LuceneVersion, CharArraySet)
Creates a new instance initialized with the given stopword set
Declaration
protected StopwordAnalyzerBase(LuceneVersion version, CharArraySet stopwords)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
version | the Lucene version for cross version compatibility |
Char |
stopwords | the analyzer's stopword set |
Fields
| Improve this Doc View Sourcem_matchVersion
Declaration
protected readonly LuceneVersion m_matchVersion
Field Value
Type | Description |
---|---|
Lucene. |
m_stopwords
An immutable stopword set
Declaration
protected readonly CharArraySet m_stopwords
Field Value
Type | Description |
---|---|
Char |
Properties
| Improve this Doc View SourceStopwordSet
Returns the analyzer's stopword set or an empty set if the analyzer has no stopwords
Declaration
public virtual CharArraySet StopwordSet { get; }
Property Value
Type | Description |
---|---|
Char |
the analyzer's stopword set or an empty set if the analyzer has no stopwords |
Methods
| Improve this Doc View SourceLoadStopwordSet(Boolean, Type, String, String)
Creates a Char
Declaration
protected static CharArraySet LoadStopwordSet(bool ignoreCase, Type aClass, string resource, string comment)
Parameters
Type | Name | Description |
---|---|---|
System. |
ignoreCase |
|
System. |
aClass | a class that is associated with the given stopwordResource |
System. |
resource | name of the resource file associated with the given class |
System. |
comment | comment string to ignore in the stopword file |
Returns
Type | Description |
---|---|
Char |
a Char |
Exceptions
Type | Condition |
---|---|
System. |
if loading the stopwords throws an System. |
LoadStopwordSet(FileInfo, LuceneVersion)
Creates a Char
Declaration
protected static CharArraySet LoadStopwordSet(FileInfo stopwords, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
System. |
stopwords | the stopwords file to load |
Lucene. |
matchVersion | the Lucene version for cross version compatibility |
Returns
Type | Description |
---|---|
Char |
a Char |
Exceptions
Type | Condition |
---|---|
System. |
if loading the stopwords throws an System. |
LoadStopwordSet(TextReader, LuceneVersion)
Creates a Char
Declaration
protected static CharArraySet LoadStopwordSet(TextReader stopwords, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
System. |
stopwords | the stopwords reader to load |
Lucene. |
matchVersion | the Lucene version for cross version compatibility |
Returns
Type | Description |
---|---|
Char |
a Char |
Exceptions
Type | Condition |
---|---|
System. |
if loading the stopwords throws an System. |