Construct a token stream filtering the given input. If
CopyC#
stopWords
is an instance of {@link CharArraySet} (true if
CopyC#
makeStopSet()
was used to construct the set) it will be directly used and
CopyC#
ignoreCase
will be ignored since
CopyC#
CharArraySet
directly controls case sensitivity.

If

CopyC#
stopWords
is not an instance of {@link CharArraySet}, a new CharArraySet will be constructed and
CopyC#
ignoreCase
will be used to specify the case sensitivity of that set.

Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public StopFilter(
	bool enablePositionIncrements,
	TokenStream input,
	Hashtable stopWords,
	bool ignoreCase
)
Visual Basic
Public Sub New ( _
	enablePositionIncrements As Boolean, _
	input As TokenStream, _
	stopWords As Hashtable, _
	ignoreCase As Boolean _
)
Visual C++
public:
StopFilter(
	bool enablePositionIncrements, 
	TokenStream^ input, 
	Hashtable^ stopWords, 
	bool ignoreCase
)

Parameters

enablePositionIncrements
Type: System..::..Boolean
true if token positions should record the removed stop words
input
Type: Lucene.Net.Analysis..::..TokenStream
Input TokenStream
stopWords
Type: System.Collections..::..Hashtable
The set of Stop Words.
ignoreCase
Type: System..::..Boolean
-Ignore case when stopping.

See Also