Class MockPayloadAnalyzer
Wraps a whitespace tokenizer with a filter that sets the first token, and odd tokens to posinc=1, and all others to 0, encoding the position as pos: XXX in the payload.
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 sealed class MockPayloadAnalyzer : 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. |