Lucene.Net.Analysis.Miscellaneous.KeepWordFilter.KeepWordFilter C# (CSharp) Method

KeepWordFilter() public method

Create a new KeepWordFilter.

NOTE: The words set passed to this constructor will be directly used by this filter and should not be modified.

public KeepWordFilter ( LuceneVersion version, TokenStream @in, CharArraySet words ) : Lucene.Net.Analysis.Tokenattributes
version LuceneVersion the Lucene match version
@in TokenStream
words CharArraySet the words to keep
return Lucene.Net.Analysis.Tokenattributes
        public KeepWordFilter(LuceneVersion version, TokenStream @in, CharArraySet words)
            : base(version, @in)
        {
            this.words = words;
            termAtt = AddAttribute<ICharTermAttribute>();
        }

Same methods

KeepWordFilter::KeepWordFilter ( LuceneVersion version, bool enablePositionIncrements, TokenStream @in, CharArraySet words ) : Lucene.Net.Analysis.Tokenattributes