Class MockBytesAnalyzer
Lucene.Net.Analysis.Analyzer for testing that encodes terms as UTF-16 bytes.
Implements
Inherited Members
Analyzer.Strategy
Analyzer.Dispose()
Analyzer.GLOBAL_REUSE_STRATEGY
Analyzer.PER_FIELD_REUSE_STRATEGY
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockBytesAnalyzer : Analyzer, IDisposable
Methods
CreateComponents(string, TextReader)
Creates a new Lucene.Net.Analysis.TokenStreamComponents instance for this analyzer.
Declaration
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName | the name of the fields content passed to the Lucene.Net.Analysis.TokenStreamComponents sink as a reader |
TextReader | reader | the reader passed to the Lucene.Net.Analysis.Tokenizer constructor |
Returns
Type | Description |
---|---|
TokenStreamComponents | the Lucene.Net.Analysis.TokenStreamComponents for this analyzer. |