C# 클래스 Lucene.Net.Analysis.Pattern.PatternReplaceFilter

A TokenFilter which applies a Pattern to each token in the stream, replacing match occurances with the specified replacement string.

Note: Depending on the input and the pattern used and the input TokenStream, this TokenFilter may produce Tokens whose text is the empty string.

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

공개 메소드들

메소드 설명
IncrementToken ( ) : bool
PatternReplaceFilter ( TokenStream @in, Regex pattern, string replacement, bool all ) : Lucene.Net.Analysis.Tokenattributes

Constructs an instance to replace either the first, or all occurances

메소드 상세

IncrementToken() 공개 메소드

public IncrementToken ( ) : bool
리턴 bool

PatternReplaceFilter() 공개 메소드

Constructs an instance to replace either the first, or all occurances
public PatternReplaceFilter ( TokenStream @in, Regex pattern, string replacement, bool all ) : Lucene.Net.Analysis.Tokenattributes
@in TokenStream
pattern System.Text.RegularExpressions.Regex the pattern (a object) to apply to each Token
replacement string the "replacement string" to substitute, if null a /// blank string will be used. Note that this is not the literal /// string that will be used, '$' and '\' have special meaning.
all bool if true, all matches will be replaced otherwise just the first match.
리턴 Lucene.Net.Analysis.Tokenattributes