Class AnalyzerFactoryTask
Analyzer factory construction task. The name given to the constructed factory may be given to NewAnalyzerTask, which will call Create().
Inherited Members
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class AnalyzerFactoryTask : PerfTask
Remarks
Params are in the form argname:argvalue or argname:"argvalue" or argname:'argvalue'; use backslashes to escape '"' or "'" inside a quoted value when it's used as the enclosing quotation mark,
Specify params in a comma separated list of the following, in order:
-
- Required:
name:analyzer-factory-name
- Optional:
positionIncrementGap:int value
(default: 0) - Optional:
offsetGap:int value
(default: 1)
- Required:
- zero or more CharFilterFactory's, followed by
- exactly one TokenizerFactory, followed by
- zero or more TokenFilterFactory's
Each component analysis factory map specify luceneMatchVersion (defaults to LUCENE_CURRENT) and any of the args understood by the specified *Factory class, in the above-describe param format.
Example:
-AnalyzerFactory(name:'strip html, fold to ascii, whitespace tokenize, max 10k tokens',
positionIncrementGap:100,
HTMLStripCharFilter,
MappingCharFilter(mapping:'mapping-FoldToASCII.txt'),
WhitespaceTokenizer(luceneMatchVersion:LUCENE_43),
TokenLimitFilter(maxTokenCount:10000, consumeAllTokens:false))
[...]
-NewAnalyzer('strip html, fold to ascii, whitespace tokenize, max 10k tokens')
AnalyzerFactory will direct analysis component factories to look for resources under the directory specified in the "work.dir" property.
Constructors
Name | Description |
---|---|
AnalyzerFactoryTask(PerfRunData) |
Properties
Name | Description |
---|---|
SupportsParams |
Methods
Name | Description |
---|---|
DoLogic() | |
GetLineNumber(StreamTokenizer) | Returns the current line in the algorithm file |
LookupAnalysisClass(String, Type) | This method looks up a class with its fully qualified name (FQN), or a short-name class-simplename, or with a package suffix, assuming "Lucene.Net.Analysis." as the namespace prefix (e.g. "standard.ClassicTokenizerFactory" -> "Lucene.Net.Analysis.Standard.ClassicTokenizerFactory"). |
SetParams(String) | Sets the params. Analysis component factory names may optionally include the "Factory" suffix. |