Class CharFilterFactory
Abstract parent class for analysis factories that create CharFilter instances.
Inheritance
System.Object
CharFilterFactory
Inherited Members
Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public abstract class CharFilterFactory : AbstractAnalysisFactory
Constructors
| Improve this Doc View SourceCharFilterFactory(IDictionary<String, String>)
Initialize this factory via a set of key-value pairs.
Declaration
protected CharFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<System.String, System.String> | args |
Properties
| Improve this Doc View SourceAvailableCharFilters
returns a list of all available charfilter names
Declaration
public static ICollection<string> AvailableCharFilters { get; }
Property Value
Type | Description |
---|---|
ICollection<System.String> |
Methods
| Improve this Doc View SourceCreate(TextReader)
Wraps the given
Declaration
public abstract TextReader Create(TextReader input)
Parameters
Type | Name | Description |
---|---|---|
TextReader | input |
Returns
Type | Description |
---|---|
TextReader |
ForName(String, IDictionary<String, String>)
looks up a charfilter by name from the host project's dependent assemblies
Declaration
public static CharFilterFactory ForName(string name, IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
IDictionary<System.String, System.String> | args |
Returns
Type | Description |
---|---|
CharFilterFactory |
LookupClass(String)
looks up a charfilter class by name from the host project's dependent assemblies
Declaration
public static Type LookupClass(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
Type |
ReloadCharFilters()
Reloads the factory list. Changes to the factories are visible after the method ends, all iterators (AvailableCharFilters,...) stay consistent.
NOTE: Only new factories are added, existing ones are never removed or replaced.
This method is expensive and should only be called for discovery of new factories on the given classpath/classloader!
Declaration
public static void ReloadCharFilters()