C# Class Lucene.Net.Analysis.Synonym.SlowSynonymFilterFactory

Inheritance: Lucene.Net.Analysis.Util.TokenFilterFactory, IResourceLoaderAware
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Create ( TokenStream input ) : TokenStream
Inform ( IResourceLoader loader ) : void
SlowSynonymFilterFactory ( string>.IDictionary args ) : System
SplitSmart ( string s, string separator, bool decode ) : IList

Splits a backslash escaped string on the separator.

Current backslash escaping supported:
\n \t \r \b \f are escaped the same as a Java String
Other characters following a backslash are produced verbatim (\c => c)

SplitWS ( string s, bool decode ) : IList

Private Methods

Method Description
GetSynList ( string str, string separator, TokenizerFactory tokFactory ) : IList>
LoadRules ( string synonyms, IResourceLoader loader ) : IEnumerable
LoadTokenizer ( TokenizerFactory tokFactory, TextReader reader ) : TokenStream
LoadTokenizerFactory ( IResourceLoader loader, string cname ) : TokenizerFactory
ParseRules ( IEnumerable rules, SlowSynonymMap map, string mappingSep, string synSep, bool expansion, TokenizerFactory tokFactory ) : void
SplitByTokenizer ( string source, TokenizerFactory tokFactory ) : IList

Method Details

Create() public method

public Create ( TokenStream input ) : TokenStream
input TokenStream
return TokenStream

Inform() public method

public Inform ( IResourceLoader loader ) : void
loader IResourceLoader
return void

SlowSynonymFilterFactory() public method

public SlowSynonymFilterFactory ( string>.IDictionary args ) : System
args string>.IDictionary
return System

SplitSmart() public static method

Splits a backslash escaped string on the separator.

Current backslash escaping supported:
\n \t \r \b \f are escaped the same as a Java String
Other characters following a backslash are produced verbatim (\c => c)

public static SplitSmart ( string s, string separator, bool decode ) : IList
s string the string to split
separator string the separator to split on
decode bool decode backslash escaping
return IList

SplitWS() public static method

public static SplitWS ( string s, bool decode ) : IList
s string
decode bool
return IList