Class StopFilter
Removes stop words from a token stream.
You must specify the required LuceneVersion compatibility when creating StopFilter:
- As of 3.1, StopFilter correctly handles Unicode 4.0 supplementary characters in stopwords and position increments are preserved
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class StopFilter : FilteringTokenFilter, IDisposable
Constructors
Name | Description |
---|---|
StopFilter(LuceneVersion, TokenStream, CharArraySet) | Constructs a filter which removes words from the input TokenStream that are named in the CharArraySet. |
Methods
Name | Description |
---|---|
Accept() | Returns the next input Token whose Term is not a stop word. |
MakeStopSet(LuceneVersion, String[]) | Builds a CharArraySet from an array of stop words,
appropriate for passing into the StopFilter constructor.
This permits this |
MakeStopSet(LuceneVersion, String[], Boolean) | Creates a stopword set from the given stopword array. |
MakeStopSet<T1>(LuceneVersion, IList<T1>) | Builds a CharArraySet from an array of stop words,
appropriate for passing into the StopFilter constructor.
This permits this |
MakeStopSet<T1>(LuceneVersion, IList<T1>, Boolean) | Creates a stopword set from the given stopword list. |