Class BaseTermVectorsFormatTestCase
Base class aiming at testing TermVectorsFormat.
To test a new format, all you need is to register a new Codec which
uses it and extend this class and override GetCodec().
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
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 |
Document |
doc |
|
System.String |
id |
|
Returns
|
Improve this Doc
View Source
Declaration
protected override void AddRandomFields(Document doc)
Parameters
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 |
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
|
Improve this Doc
View Source
Declaration
protected virtual BaseTermVectorsFormatTestCase.Options RandomOptions()
Returns
|
Improve this Doc
View Source
Declaration
protected virtual BytesRef RandomPayload()
Returns
|
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