C# 클래스 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.

상속: Lucene.Net.Analysis.TokenFilter
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
End ( ) : void
IncrementToken ( ) : bool
Reset ( ) : void
SuggestStopFilter ( TokenStream input, Lucene.Net.Analysis.CharArraySet stopWords ) : Lucene.Net.Analysis

Sole constructor.

메소드 상세

End() 공개 메소드

public End ( ) : void
리턴 void

IncrementToken() 공개 메소드

public IncrementToken ( ) : bool
리턴 bool

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

SuggestStopFilter() 공개 메소드

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