C# Class Lucene.Net.Search.Suggest.Analyzing.SuggestStopFilter

Like Analysis.Core.StopFilter except it will not remove the last token if that token was not followed by some token separator. For example, a query 'find the' would preserve the 'the' since it was not followed by a space or punctuation or something, and mark it KEYWORD so future stemmers won't touch it either while a query like "find the popsicle' would remove 'the' as a stopword.

Normally you'd use the ordinary Analysis.Core.StopFilter in your indexAnalyzer and then this class in your queryAnalyzer, when using one of the analyzing suggesters.

Inheritance: Lucene.Net.Analysis.TokenFilter
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
End ( ) : void
IncrementToken ( ) : bool
Reset ( ) : void
SuggestStopFilter ( TokenStream input, Lucene.Net.Analysis.CharArraySet stopWords ) : Lucene.Net.Analysis

Sole constructor.

Method Details

End() public method

public End ( ) : void
return void

IncrementToken() public method

public IncrementToken ( ) : bool
return bool

Reset() public method

public Reset ( ) : void
return void

SuggestStopFilter() public method

Sole constructor.
public SuggestStopFilter ( TokenStream input, Lucene.Net.Analysis.CharArraySet stopWords ) : Lucene.Net.Analysis
input Lucene.Net.Analysis.TokenStream
stopWords Lucene.Net.Analysis.CharArraySet
return Lucene.Net.Analysis