Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BaseTokenStreamTestCase

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Inheritance
    object
    LuceneTestCase
    BaseTokenStreamTestCase
    Inherited Members
    LuceneTestCase.TEST_VERSION_CURRENT
    LuceneTestCase.Verbose
    LuceneTestCase.UseInfoStream
    LuceneTestCase.RandomMultiplier
    LuceneTestCase.DEFAULT_LINE_DOCS_FILE
    LuceneTestCase.JENKINS_LARGE_LINE_DOCS_FILE
    LuceneTestCase.TestCodec
    LuceneTestCase.TestPostingsFormat
    LuceneTestCase.TestDocValuesFormat
    LuceneTestCase.TestDirectory
    LuceneTestCase.TestLineDocsFile
    LuceneTestCase.TestNightly
    LuceneTestCase.TestWeekly
    LuceneTestCase.TestAwaitsFix
    LuceneTestCase.TestSlow
    LuceneTestCase.LeaveTemporary
    LuceneTestCase.DoesntSupportOffsets
    LuceneTestCase.OldFormatImpersonationIsActive
    LuceneTestCase.SuiteFailureMarker
    LuceneTestCase.SetUp()
    LuceneTestCase.TearDown()
    LuceneTestCase.BeforeClass()
    LuceneTestCase.AfterClass()
    LuceneTestCase.Random
    LuceneTestCase.TestType
    LuceneTestCase.TestName
    LuceneTestCase.GetOnlySegmentReader(DirectoryReader)
    LuceneTestCase.AssertSaneFieldCaches(string)
    LuceneTestCase.AtLeast(Random, int)
    LuceneTestCase.AtLeast(int)
    LuceneTestCase.Rarely(Random)
    LuceneTestCase.Rarely()
    LuceneTestCase.Usually(Random)
    LuceneTestCase.Usually()
    LuceneTestCase.AssumeTrue(string, bool)
    LuceneTestCase.AssumeFalse(string, bool)
    LuceneTestCase.AssumeNoException(string, Exception)
    LuceneTestCase.AsSet(params object[])
    LuceneTestCase.DumpEnumerator(string, IEnumerator, TextWriter)
    LuceneTestCase.DumpArray(string, object[], TextWriter)
    LuceneTestCase.NewIndexWriterConfig(LuceneVersion, Analyzer)
    LuceneTestCase.NewIndexWriterConfig(Random, LuceneVersion, Analyzer)
    LuceneTestCase.NewMergePolicy(Random)
    LuceneTestCase.NewMergePolicy()
    LuceneTestCase.NewLogMergePolicy()
    LuceneTestCase.NewTieredMergePolicy()
    LuceneTestCase.NewAlcoholicMergePolicy()
    LuceneTestCase.NewAlcoholicMergePolicy(Random, TimeZoneInfo)
    LuceneTestCase.NewLogMergePolicy(Random)
    LuceneTestCase.NewTieredMergePolicy(Random)
    LuceneTestCase.NewLogMergePolicy(bool)
    LuceneTestCase.NewLogMergePolicy(bool, int)
    LuceneTestCase.NewLogMergePolicy(int)
    LuceneTestCase.NewDirectory()
    LuceneTestCase.NewDirectory(Random)
    LuceneTestCase.NewMockDirectory()
    LuceneTestCase.NewMockDirectory(Random)
    LuceneTestCase.NewMockFSDirectory(DirectoryInfo)
    LuceneTestCase.NewDirectory(Directory)
    LuceneTestCase.NewFSDirectory(DirectoryInfo)
    LuceneTestCase.NewFSDirectory(DirectoryInfo, LockFactory)
    LuceneTestCase.NewDirectory(Random, Directory)
    LuceneTestCase.NewStringField(string, string, Field.Store)
    LuceneTestCase.NewTextField(string, string, Field.Store)
    LuceneTestCase.NewStringField(Random, string, string, Field.Store)
    LuceneTestCase.NewTextField(Random, string, string, Field.Store)
    LuceneTestCase.NewField(string, string, FieldType)
    LuceneTestCase.NewField(Random, string, string, FieldType)
    LuceneTestCase.RandomCulture(Random)
    LuceneTestCase.RandomTimeZone(Random)
    LuceneTestCase.CultureForName(string)
    LuceneTestCase.DefaultCodecSupportsDocValues
    LuceneTestCase.MaybeWrapReader(IndexReader)
    LuceneTestCase.NewIOContext(Random)
    LuceneTestCase.NewIOContext(Random, IOContext)
    LuceneTestCase.NewSearcher(IndexReader)
    LuceneTestCase.NewSearcher(IndexReader, bool)
    LuceneTestCase.NewSearcher(IndexReader, bool, bool)
    LuceneTestCase.GetDataFile(string)
    LuceneTestCase.DefaultCodecSupportsMissingDocValues
    LuceneTestCase.DefaultCodecSupportsSortedSet
    LuceneTestCase.DefaultCodecSupportsDocsWithField
    LuceneTestCase.DefaultCodecSupportsFieldUpdates
    LuceneTestCase.AssertReaderEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertReaderStatisticsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertFieldsEquals(string, IndexReader, Fields, Fields, bool)
    LuceneTestCase.AssertFieldStatisticsEquals(string, Fields, Fields)
    LuceneTestCase.AssertTermsEquals(string, IndexReader, Terms, Terms, bool)
    LuceneTestCase.AssertTermsStatisticsEquals(string, Terms, Terms)
    LuceneTestCase.AssertTermsEnumEquals(string, IndexReader, TermsEnum, TermsEnum, bool)
    LuceneTestCase.AssertDocsAndPositionsEnumEquals(string, DocsAndPositionsEnum, DocsAndPositionsEnum)
    LuceneTestCase.AssertDocsEnumEquals(string, DocsEnum, DocsEnum, bool)
    LuceneTestCase.AssertDocsSkippingEquals(string, IndexReader, int, DocsEnum, DocsEnum, bool)
    LuceneTestCase.AssertPositionsSkippingEquals(string, IndexReader, int, DocsAndPositionsEnum, DocsAndPositionsEnum)
    LuceneTestCase.AssertTermStatsEquals(string, TermsEnum, TermsEnum)
    LuceneTestCase.AssertNormsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertStoredFieldsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertStoredFieldEquals(string, IIndexableField, IIndexableField)
    LuceneTestCase.AssertTermVectorsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertDocValuesEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertDocValuesEquals(string, int, NumericDocValues, NumericDocValues)
    LuceneTestCase.AssertDeletedDocsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertFieldInfosEquals(string, IndexReader, IndexReader)
    LuceneTestCase.SlowFileExists(Directory, string)
    LuceneTestCase.CreateTempDir()
    LuceneTestCase.CreateTempDir(string)
    LuceneTestCase.CreateTempFile(string, string)
    LuceneTestCase.CreateTempFile()
    LuceneTestCase.GetFullMethodName(string)
    LuceneTestCase.RandomGaussian()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public abstract class BaseTokenStreamTestCase : LuceneTestCase

    Methods

    AssertAnalyzesTo(Analyzer, string, string[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, int[] posIncrements)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] posIncrements
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], int[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, int[] startOffsets, int[] endOffsets)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] startOffsets
    int[] endOffsets
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], int[], int[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, int[] startOffsets, int[] endOffsets, int[] posIncrements)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] startOffsets
    int[] endOffsets
    int[] posIncrements
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], int[], int[], string[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], int[], int[], string[], int[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int[] posLengths)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int[] posLengths
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], int[], int[], string[], int[], int[], bool)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int[] posLengths, bool offsetsAreCorrect)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int[] posLengths
    bool offsetsAreCorrect
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], int[], int[], string[], int[], int[], bool, byte[][])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int[] posLengths, bool graphOffsetsAreCorrect, byte[][] payloads)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int[] posLengths
    bool graphOffsetsAreCorrect
    byte[][] payloads
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesTo(Analyzer, string, string[], string[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesTo(Analyzer a, string input, string[] output, string[] types)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    string[] types
    See Also
    MockAnalyzer
    MockTokenizer

    AssertAnalyzesToPositions(Analyzer, string, string[], int[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertAnalyzesToPositions(Analyzer a, string input, string[] output, int[] posIncrements, int[] posLengths)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string[] output
    int[] posIncrements
    int[] posLengths
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] posIncrements)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] posIncrements
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, int[] posIncrements)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    int[] posIncrements
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], int[], int[], int?)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, int[] posIncrements, int[] posLengths, int? finalOffset)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    int[] posIncrements
    int[] posLengths
    int? finalOffset
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], int[], int?)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, int[] posIncrements, int? finalOffset)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    int[] posIncrements
    int? finalOffset
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], int?)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, int? finalOffset)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    int? finalOffset
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], string[], int[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], string[], int[], int[], int?)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int[] posLengths, int? finalOffset)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int[] posLengths
    int? finalOffset
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], string[], int[], int[], int?, bool)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int[] posLengths, int? finalOffset, bool offsetsAreCorrect)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int[] posLengths
    int? finalOffset
    bool offsetsAreCorrect
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], string[], int[], int[], int?, bool[], bool)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int[] posLengths, int? finalOffset, bool[] keywordAtts, bool offsetsAreCorrect)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int[] posLengths
    int? finalOffset
    bool[] keywordAtts
    bool offsetsAreCorrect
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], string[], int[], int[], int?, int?, bool[], bool, byte[][])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int[] posLengths, int? finalOffset, int? finalPosInc, bool[] keywordAtts, bool offsetsAreCorrect, byte[][] payloads)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int[] posLengths
    int? finalOffset
    int? finalPosInc
    bool[] keywordAtts
    bool offsetsAreCorrect
    byte[][] payloads
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], int[], int[], string[], int[], int?)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, int[] startOffsets, int[] endOffsets, string[] types, int[] posIncrements, int? finalOffset)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    int[] startOffsets
    int[] endOffsets
    string[] types
    int[] posIncrements
    int? finalOffset
    See Also
    MockAnalyzer
    MockTokenizer

    AssertTokenStreamContents(TokenStream, string[], string[])

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void AssertTokenStreamContents(TokenStream ts, string[] output, string[] types)
    Parameters
    Type Name Description
    TokenStream ts
    string[] output
    string[] types
    See Also
    MockAnalyzer
    MockTokenizer

    CheckAnalysisConsistency(Random, Analyzer, bool, string)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void CheckAnalysisConsistency(Random random, Analyzer a, bool useCharFilter, string text)
    Parameters
    Type Name Description
    Random random
    Analyzer a
    bool useCharFilter
    string text
    See Also
    MockAnalyzer
    MockTokenizer

    CheckAnalysisConsistency(Random, Analyzer, bool, string, bool)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void CheckAnalysisConsistency(Random random, Analyzer a, bool useCharFilter, string text, bool offsetsAreCorrect)
    Parameters
    Type Name Description
    Random random
    Analyzer a
    bool useCharFilter
    string text
    bool offsetsAreCorrect
    See Also
    MockAnalyzer
    MockTokenizer

    CheckOneTerm(Analyzer, string, string)

    Simple utility method for testing stemmers

    Declaration
    public static void CheckOneTerm(Analyzer a, string input, string expected)
    Parameters
    Type Name Description
    Analyzer a
    string input
    string expected
    See Also
    MockAnalyzer
    MockTokenizer

    CheckRandomData(Random, Analyzer, int)

    Utility method for blasting tokenstreams with data to make sure they don't do anything crazy

    Declaration
    public static void CheckRandomData(Random random, Analyzer a, int iterations)
    Parameters
    Type Name Description
    Random random
    Analyzer a
    int iterations
    See Also
    MockAnalyzer
    MockTokenizer

    CheckRandomData(Random, Analyzer, int, bool)

    Utility method for blasting tokenstreams with data to make sure they don't do anything crazy

    Declaration
    public static void CheckRandomData(Random random, Analyzer a, int iterations, bool simple)
    Parameters
    Type Name Description
    Random random
    Analyzer a
    int iterations
    bool simple

    true if only ascii strings will be used (try to avoid)

    See Also
    MockAnalyzer
    MockTokenizer

    CheckRandomData(Random, Analyzer, int, int)

    Utility method for blasting tokenstreams with data to make sure they don't do anything crazy

    Declaration
    public static void CheckRandomData(Random random, Analyzer a, int iterations, int maxWordLength)
    Parameters
    Type Name Description
    Random random
    Analyzer a
    int iterations
    int maxWordLength
    See Also
    MockAnalyzer
    MockTokenizer

    CheckRandomData(Random, Analyzer, int, int, bool)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void CheckRandomData(Random random, Analyzer a, int iterations, int maxWordLength, bool simple)
    Parameters
    Type Name Description
    Random random
    Analyzer a
    int iterations
    int maxWordLength
    bool simple
    See Also
    MockAnalyzer
    MockTokenizer

    CheckRandomData(Random, Analyzer, int, int, bool, bool)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static void CheckRandomData(Random random, Analyzer a, int iterations, int maxWordLength, bool simple, bool offsetsAreCorrect)
    Parameters
    Type Name Description
    Random random
    Analyzer a
    int iterations
    int maxWordLength
    bool simple
    bool offsetsAreCorrect
    See Also
    MockAnalyzer
    MockTokenizer

    Escape(string)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    public static string Escape(string s)
    Parameters
    Type Name Description
    string s
    Returns
    Type Description
    string
    See Also
    MockAnalyzer
    MockTokenizer

    NewAttributeFactory()

    Returns a random Lucene.Net.Util.AttributeSource.AttributeFactory impl

    Declaration
    public static AttributeSource.AttributeFactory NewAttributeFactory()
    Returns
    Type Description
    AttributeSource.AttributeFactory
    See Also
    MockAnalyzer
    MockTokenizer

    NewAttributeFactory(Random)

    Returns a random Lucene.Net.Util.AttributeSource.AttributeFactory impl

    Declaration
    public static AttributeSource.AttributeFactory NewAttributeFactory(Random random)
    Parameters
    Type Name Description
    Random random
    Returns
    Type Description
    AttributeSource.AttributeFactory
    See Also
    MockAnalyzer
    MockTokenizer

    ToDot(Analyzer, string)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    protected virtual string ToDot(Analyzer a, string inputText)
    Parameters
    Type Name Description
    Analyzer a
    string inputText
    Returns
    Type Description
    string
    See Also
    MockAnalyzer
    MockTokenizer

    ToDotFile(Analyzer, string, string)

    Base class for all Lucene unit tests that use Lucene.Net.Analysis.TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.
    Declaration
    protected virtual void ToDotFile(Analyzer a, string inputText, string localFileName)
    Parameters
    Type Name Description
    Analyzer a
    string inputText
    string localFileName
    See Also
    MockAnalyzer
    MockTokenizer

    See Also

    MockAnalyzer
    MockTokenizer
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.