Class KeepWordFilter
A TokenFilter that only keeps tokens with text contained in the required words. This filter behaves like the inverse of StopFilter.
@since solr 1.3
Inheritance
System.Object
KeepWordFilter
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class KeepWordFilter : FilteringTokenFilter, IDisposable
Constructors
| Improve this Doc View SourceKeepWordFilter(LuceneVersion, TokenStream, CharArraySet)
Create a new KeepWordFilter.
NOTE
: The words set passed to this constructor will be directly
used by this filter and should not be modified.
Declaration
public KeepWordFilter(LuceneVersion version, TokenStream in, CharArraySet words)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | the Lucene match version |
TokenStream | in | the TokenStream to consume |
CharArraySet | words | the words to keep |
KeepWordFilter(LuceneVersion, Boolean, TokenStream, CharArraySet)
Declaration
[Obsolete("enablePositionIncrements=false is not supported anymore as of Lucene 4.4.")]
public KeepWordFilter(LuceneVersion version, bool enablePositionIncrements, TokenStream in, CharArraySet words)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | |
System.Boolean | enablePositionIncrements | |
TokenStream | in | |
CharArraySet | words |
Methods
| Improve this Doc View SourceAccept()
Declaration
protected override bool Accept()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.IDisposable