Class NewAnalyzerTask
Create a new Lucene.Net.Analysis.Analyzer and set it it in the getRunData() for use by all future tasks.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class NewAnalyzerTask : PerfTask, IDisposable
Constructors
NewAnalyzerTask(PerfRunData)
Create a new Lucene.Net.Analysis.Analyzer and set it it in the getRunData() for use by all future tasks.
Declaration
public NewAnalyzerTask(PerfRunData runData)
Parameters
Type | Name | Description |
---|---|---|
PerfRunData | runData |
Properties
SupportsParams
Create a new Lucene.Net.Analysis.Analyzer and set it it in the getRunData() for use by all future tasks.
Declaration
public override bool SupportsParams { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
See Also
Methods
CreateAnalyzer(string)
Create a new Lucene.Net.Analysis.Analyzer and set it it in the getRunData() for use by all future tasks.
Declaration
public static Analyzer CreateAnalyzer(string className)
Parameters
Type | Name | Description |
---|---|---|
string | className |
Returns
Type | Description |
---|---|
Analyzer |
DoLogic()
Perform the task once (ignoring repetitions specification). Return number of work items done by this task. For indexing that can be number of docs added. For warming that can be number of scanned items, etc.
Declaration
public override int DoLogic()
Returns
Type | Description |
---|---|
int | Number of work items done by this task. |
Overrides
SetParams(string)
Set the params (analyzerName only), Comma-separate list of Analyzer class names. If the Analyzer lives in Lucene.Net.Analysis, the name can be shortened by dropping the Lucene.Net.Analysis part of the Fully Qualified Class Name.
Analyzer names may also refer to previously defined AnalyzerFactory's. Example Declaration:{"NewAnalyzer" NewAnalyzer(WhitespaceAnalyzer, SimpleAnalyzer, StopAnalyzer, Standard.StandardAnalyzer) >
Example AnalyzerFactory usage:
-AnalyzerFactory(name:'whitespace tokenized',WhitespaceTokenizer)
-NewAnalyzer('whitespace tokenized')
Declaration
public override void SetParams(string @params)
Parameters
Type | Name | Description |
---|---|---|
string | params | analyzerClassName, or empty for the StandardAnalyzer |