Class StopFilter
Removes stop words from a token stream.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public sealed class StopFilter : TokenFilter, IDisposable
Constructors
Name | Description |
---|---|
StopFilter(Boolean, TokenStream, ISet<String>) | Constructs a filter which removes words from the input TokenStream that are named in the Set. |
StopFilter(Boolean, TokenStream, ISet<String>, Boolean) | Construct a token stream filtering the given input.
If
If |
Properties
Name | Description |
---|---|
EnablePositionIncrements | If When set, when a token is stopped (omitted), the position increment of the following token is incremented. NOTE: be sure to also set Lucene.Net.QueryParsers.QueryParser.EnablePositionIncrements if you use QueryParser to create queries. |
Methods
Name | Description |
---|---|
GetEnablePositionIncrementsVersionDefault(Version) | Returns version-dependent default for enablePositionIncrements. Analyzers that embed StopFilter use this method when creating the StopFilter. Prior to 2.9, this returns false. On 2.9 or later, it returns true. |
IncrementToken() | Returns the next input Token whose term() is not a stop word. |
MakeStopSet(IList<Object>) | Builds a Set from an array of stop words, appropriate for passing into the StopFilter constructor. This permits this stopWords construction to be cached once when an Analyzer is constructed. |
MakeStopSet(IList<Object>, Boolean) | |
MakeStopSet(String[]) | Builds a Set from an array of stop words, appropriate for passing into the StopFilter constructor. This permits this stopWords construction to be cached once when an Analyzer is constructed. |
MakeStopSet(String[], Boolean) |