Class TokenizerFactory
Abstract parent class for analysis factories that create Tokenizer instances.
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public abstract class TokenizerFactory : AbstractAnalysisFactory
Constructors
Name | Description |
---|---|
TokenizerFactory(IDictionary<String, String>) | Initialize this factory via a set of key-value pairs. |
Properties
Name | Description |
---|---|
AvailableTokenizers | returns a list of all available tokenizer names from the host project's referenced assemblies |
Methods
Name | Description |
---|---|
Create(AttributeSource.AttributeFactory, TextReader) | Creates a TokenStream of the specified input using the given AttributeSource.AttributeFactory |
Create(TextReader) | Creates a TokenStream of the specified input using the default attribute factory. |
ForName(String, IDictionary<String, String>) | looks up a tokenizer by name from the host project's referenced assemblies |
LookupClass(String) | looks up a tokenizer class by name from the host project's referenced assemblies |
ReloadTokenizers() | Reloads the factory list. Changes to the factories are visible after the method ends, all iterators (AvailableTokenizers,...) 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! |