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
BaseTermVectorsFormatTestCase
Inherited Members
System.Object.Equals(System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Lucene.Net.TestFramework.dll
public abstract class BaseTermVectorsFormatTestCase : BaseIndexFileFormatTestCase
Methods
|
Improve this Doc
View Source
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
Declaration
protected override void AddRandomFields(Document doc)
Parameters
Type |
Name |
Description |
Lucene.Net.Documents.Document |
doc |
|
Overrides
|
Improve this Doc
View Source
Declaration
public override void AfterClass()
Overrides
|
Improve this Doc
View Source
Declaration
protected virtual void AssertEquals(BaseTermVectorsFormatTestCase.RandomDocument doc, Fields fields)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void AssertEquals(BaseTermVectorsFormatTestCase.RandomTokenStream tk, FieldType ft, Terms terms)
Parameters
|
Improve this Doc
View Source
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
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
Declaration
protected virtual FieldType FieldType(BaseTermVectorsFormatTestCase.Options options)
Parameters
Returns
Type |
Description |
Lucene.Net.Documents.FieldType |
|
|
Improve this Doc
View Source
Declaration
protected virtual BaseTermVectorsFormatTestCase.Options RandomOptions()
Returns
|
Improve this Doc
View Source
Declaration
protected virtual BytesRef RandomPayload()
Returns
Type |
Description |
Lucene.Net.Util.BytesRef |
|
|
Improve this Doc
View Source
Declaration
[Test]
public virtual void TestClone()
|
Improve this Doc
View Source
Declaration
[Test]
public virtual void TestHighFreqs()
|
Improve this Doc
View Source
Declaration
[Test]
public virtual void TestLotsOfFields()
|
Improve this Doc
View Source
Declaration
[Test]
public virtual void TestMerge()
|
Improve this Doc
View Source
Declaration
[Test]
public virtual void TestMixedOptions()
|
Improve this Doc
View Source
Declaration
[Test]
public virtual void TestRandom()
|
Improve this Doc
View Source
Declaration
[Test]
public virtual void TestRareVectors()
|
Improve this Doc
View Source
Declaration
protected virtual IEnumerable<BaseTermVectorsFormatTestCase.Options> ValidOptions()
Returns
|
Improve this Doc
View Source
Declaration
protected virtual IEnumerable<BaseTermVectorsFormatTestCase.Options> ValidOptions(BaseTermVectorsFormatTestCase.Options startInc, BaseTermVectorsFormatTestCase.Options endInc)
Parameters
Returns