If
CopyC#
true
, this StopFilter will preserve positions of the incoming tokens (ie, accumulate and set position increments of the removed stop tokens). Generally,
CopyC#
true
is best as it does not lose information (positions of the original tokens) during indexing.

When set, when a token is stopped (omitted), the position increment of the following token is incremented.

NOTE: be sure to also set {@link QueryParser#setEnablePositionIncrements} if you use QueryParser to create queries.

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

Syntax

C#
public void SetEnablePositionIncrements(
	bool enable
)
Visual Basic
Public Sub SetEnablePositionIncrements ( _
	enable As Boolean _
)
Visual C++
public:
void SetEnablePositionIncrements(
	bool enable
)

Parameters

enable
Type: System..::..Boolean

[Missing <param name="enable"/> documentation for "M:Lucene.Net.Analysis.StopFilter.SetEnablePositionIncrements(System.Boolean)"]

See Also