C# Class org.apache.lucene.analysis.synonym.SlowSynonymFilterFactory

Inheritance: Lucene.Net.Analysis.Util.TokenFilterFactory, ResourceLoaderAware
Datei anzeigen Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
SlowSynonymFilterFactory ( string>.IDictionary args ) : System
create ( TokenStream input ) : SlowSynonymFilter
inform ( ResourceLoader loader ) : void
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

Protected Methods

Method Description
loadRules ( string synonyms, ResourceLoader loader ) : IEnumerable

Private Methods

Method Description
getSynList ( string str, string separator, TokenizerFactory tokFactory ) : IList>
loadTokenizer ( TokenizerFactory tokFactory, Reader reader ) : TokenStream
loadTokenizerFactory ( ResourceLoader 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

SlowSynonymFilterFactory() public method

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

create() public method

public create ( TokenStream input ) : SlowSynonymFilter
input TokenStream
return Lucene.Net.Analysis.Synonym.SlowSynonymFilter

inform() public method

public inform ( ResourceLoader loader ) : void
loader ResourceLoader
return void

loadRules() protected method

protected loadRules ( string synonyms, ResourceLoader loader ) : IEnumerable
synonyms string
loader ResourceLoader
return IEnumerable

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