Method SetEnablePositionIncrements
SetEnablePositionIncrements(Boolean)
If true
, this TokenFilter will preserve
positions of the incoming tokens (ie, accumulate and
set position increments of the removed tokens).
Generally, 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.
Declaration
[Obsolete("enablePositionIncrements=false is not supported anymore as of Lucene 4.4")]
public virtual void SetEnablePositionIncrements(bool enable)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enable |