Re: setPositionIncrements, p.172 (soft pg num), sec. 4.6.1
"true" means the position will be incremented to reflect the holes left behind when stopwords are removed.
The defaulting is complicated...
In 3.0.1, StopFilter's ctor requires that you pass in enablePositionIncrements, so there's no default at the class level. However StopFilter exposes a static getEnablePositionIncrementsVersionDefault, which returns true when version is >= 2.9. Analyzers that create a StopFilter uses this to get the version-dependent default.
|