Class MockAnalyzer
Inheritance
System.Object
MockAnalyzer
Assembly: Lucene.Net.TestFramework.dll
Syntax
public sealed class MockAnalyzer : Analyzer
Constructors
Name | Description |
---|---|
MockAnalyzer(Random) | Create a Whitespace-lowercasing analyzer with no stopwords removal.
Calls |
MockAnalyzer(Random, CharacterRunAutomaton, Boolean) | Calls |
MockAnalyzer(Random, CharacterRunAutomaton, Boolean, CharacterRunAutomaton) | Creates a new MockAnalyzer. |
Properties
Name | Description |
---|---|
EnableChecks | Toggle consumer workflow checking: if your test consumes tokenstreams normally you should leave this enabled. |
MaxTokenLength | Toggle maxTokenLength for MockTokenizer |
OffsetGap | Set a new offset gap which will then be added to the offset when several fields with the same name are indexed |
PositionIncrementGap |
Methods
Name | Description |
---|---|
CreateComponents(String, TextReader) | |
GetOffsetGap(String) | Get the offset gap between tokens in fields if several fields with the same name were added. |
GetPositionIncrementGap(String) |