Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BaseTermVectorsFormatTestCase

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    LuceneTestCase
    BaseIndexFileFormatTestCase
    BaseTermVectorsFormatTestCase
    Inherited Members
    BaseIndexFileFormatTestCase.GetCodec()
    BaseIndexFileFormatTestCase.SetUp()
    BaseIndexFileFormatTestCase.TearDown()
    BaseIndexFileFormatTestCase.ExcludedExtensionsFromByteCounts
    BaseIndexFileFormatTestCase.TestMergeStability()
    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.BeforeClass()
    LuceneTestCase.Random
    LuceneTestCase.TestType
    LuceneTestCase.TestName
    LuceneTestCase.GetOnlySegmentReader(DirectoryReader)
    LuceneTestCase.AssertSaneFieldCaches(String)
    LuceneTestCase.AtLeast(Random, Int32)
    LuceneTestCase.AtLeast(Int32)
    LuceneTestCase.Rarely(Random)
    LuceneTestCase.Rarely()
    LuceneTestCase.Usually(Random)
    LuceneTestCase.Usually()
    LuceneTestCase.AssumeTrue(String, Boolean)
    LuceneTestCase.AssumeFalse(String, Boolean)
    LuceneTestCase.AssumeNoException(String, Exception)
    LuceneTestCase.AsSet(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(Boolean)
    LuceneTestCase.NewLogMergePolicy(Boolean, Int32)
    LuceneTestCase.NewLogMergePolicy(Int32)
    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, Boolean)
    LuceneTestCase.NewSearcher(IndexReader, Boolean, Boolean)
    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, Boolean)
    LuceneTestCase.AssertFieldStatisticsEquals(String, Fields, Fields)
    LuceneTestCase.AssertTermsEquals(String, IndexReader, Terms, Terms, Boolean)
    LuceneTestCase.AssertTermsStatisticsEquals(String, Terms, Terms)
    LuceneTestCase.AssertTermsEnumEquals(String, IndexReader, TermsEnum, TermsEnum, Boolean)
    LuceneTestCase.AssertDocsAndPositionsEnumEquals(String, DocsAndPositionsEnum, DocsAndPositionsEnum)
    LuceneTestCase.AssertDocsEnumEquals(String, DocsEnum, DocsEnum, Boolean)
    LuceneTestCase.AssertDocsSkippingEquals(String, IndexReader, Int32, DocsEnum, DocsEnum, Boolean)
    LuceneTestCase.AssertPositionsSkippingEquals(String, IndexReader, Int32, 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, Int32, 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()
    System.Object.Equals(System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public abstract class BaseTermVectorsFormatTestCase : BaseIndexFileFormatTestCase

    Methods

    | Improve this Doc View Source

    AddId(Document, String)

    Declaration
    protected virtual Document AddId(Document doc, string id)
    Parameters
    Type Name Description
    Lucene.Net.Documents.Document doc
    System.String id
    Returns
    Type Description
    Lucene.Net.Documents.Document
    | Improve this Doc View Source

    AddRandomFields(Document)

    Declaration
    protected override void AddRandomFields(Document doc)
    Parameters
    Type Name Description
    Lucene.Net.Documents.Document doc
    Overrides
    BaseIndexFileFormatTestCase.AddRandomFields(Document)
    | Improve this Doc View Source

    AfterClass()

    Declaration
    public override void AfterClass()
    Overrides
    LuceneTestCase.AfterClass()
    | Improve this Doc View Source

    AssertEquals(BaseTermVectorsFormatTestCase.RandomDocument, Fields)

    Declaration
    protected virtual void AssertEquals(BaseTermVectorsFormatTestCase.RandomDocument doc, Fields fields)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.RandomDocument doc
    Lucene.Net.Index.Fields fields
    | Improve this Doc View Source

    AssertEquals(BaseTermVectorsFormatTestCase.RandomTokenStream, FieldType, Terms)

    Declaration
    protected virtual void AssertEquals(BaseTermVectorsFormatTestCase.RandomTokenStream tk, FieldType ft, Terms terms)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.RandomTokenStream tk
    Lucene.Net.Documents.FieldType ft
    Lucene.Net.Index.Terms terms
    | Improve this Doc View Source

    DocID(IndexReader, String)

    Declaration
    protected virtual int DocID(IndexReader reader, string id)
    Parameters
    Type Name Description
    Lucene.Net.Index.IndexReader reader
    System.String id
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Equals(Object, Object)

    Declaration
    protected static bool Equals(object o1, object o2)
    Parameters
    Type Name Description
    System.Object o1
    System.Object o2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    FieldType(BaseTermVectorsFormatTestCase.Options)

    Declaration
    protected virtual FieldType FieldType(BaseTermVectorsFormatTestCase.Options options)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.Options options
    Returns
    Type Description
    Lucene.Net.Documents.FieldType
    | Improve this Doc View Source

    RandomOptions()

    Declaration
    protected virtual BaseTermVectorsFormatTestCase.Options RandomOptions()
    Returns
    Type Description
    BaseTermVectorsFormatTestCase.Options
    | Improve this Doc View Source

    RandomPayload()

    Declaration
    protected virtual BytesRef RandomPayload()
    Returns
    Type Description
    Lucene.Net.Util.BytesRef
    | Improve this Doc View Source

    TestClone()

    Declaration
    [Test]
    public virtual void TestClone()
    | Improve this Doc View Source

    TestHighFreqs()

    Declaration
    [Test]
    public virtual void TestHighFreqs()
    | Improve this Doc View Source

    TestLotsOfFields()

    Declaration
    [Test]
    public virtual void TestLotsOfFields()
    | Improve this Doc View Source

    TestMerge()

    Declaration
    [Test]
    public virtual void TestMerge()
    | Improve this Doc View Source

    TestMixedOptions()

    Declaration
    [Test]
    public virtual void TestMixedOptions()
    | Improve this Doc View Source

    TestRandom()

    Declaration
    [Test]
    public virtual void TestRandom()
    | Improve this Doc View Source

    TestRareVectors()

    Declaration
    [Test]
    public virtual void TestRareVectors()
    | Improve this Doc View Source

    ValidOptions()

    Declaration
    protected virtual IEnumerable<BaseTermVectorsFormatTestCase.Options> ValidOptions()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<BaseTermVectorsFormatTestCase.Options>
    | Improve this Doc View Source

    ValidOptions(BaseTermVectorsFormatTestCase.Options, BaseTermVectorsFormatTestCase.Options)

    Declaration
    protected virtual IEnumerable<BaseTermVectorsFormatTestCase.Options> ValidOptions(BaseTermVectorsFormatTestCase.Options startInc, BaseTermVectorsFormatTestCase.Options endInc)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.Options startInc
    BaseTermVectorsFormatTestCase.Options endInc
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<BaseTermVectorsFormatTestCase.Options>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.