C# Class Lucene.Net.Index.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(). @lucene.experimental
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
TestClone ( ) : void
TestHighFreqs ( ) : void
TestLotsOfFields ( ) : void
TestMerge ( ) : void
TestMixedOptions ( ) : void
TestRandom ( ) : void
TestRareVectors ( ) : void

Protected Methods

Method Description
AddId ( Lucene.Net.Documents.Document doc, string id ) : Lucene.Net.Documents.Document
AddRandomFields ( Lucene.Net.Documents.Document doc ) : void
AssertEquals ( RandomDocument doc, Fields fields ) : void
AssertEquals ( RandomTokenStream tk, FieldType ft, Lucene.Net.Index.Terms terms ) : void
DocID ( IndexReader reader, string id ) : int
Equals ( object o1, object o2 ) : bool
FieldType ( Options options ) : FieldType
RandomOptions ( ) : Options
RandomPayload ( ) : BytesRef
ValidOptions ( ) : IEnumerable
ValidOptions ( Options startInc, Options endInc ) : IEnumerable

Method Details

AddId() protected method

protected AddId ( Lucene.Net.Documents.Document doc, string id ) : Lucene.Net.Documents.Document
doc Lucene.Net.Documents.Document
id string
return Lucene.Net.Documents.Document

AddRandomFields() protected method

protected AddRandomFields ( Lucene.Net.Documents.Document doc ) : void
doc Lucene.Net.Documents.Document
return void

AssertEquals() protected method

protected AssertEquals ( RandomDocument doc, Fields fields ) : void
doc RandomDocument
fields Fields
return void

AssertEquals() protected method

protected AssertEquals ( RandomTokenStream tk, FieldType ft, Lucene.Net.Index.Terms terms ) : void
tk RandomTokenStream
ft Lucene.Net.Documents.FieldType
terms Lucene.Net.Index.Terms
return void

DocID() protected method

protected DocID ( IndexReader reader, string id ) : int
reader IndexReader
id string
return int

Equals() protected static method

protected static Equals ( object o1, object o2 ) : bool
o1 object
o2 object
return bool

FieldType() protected method

protected FieldType ( Options options ) : FieldType
options Options
return Lucene.Net.Documents.FieldType

RandomOptions() protected method

protected RandomOptions ( ) : Options
return Options

RandomPayload() protected method

protected RandomPayload ( ) : BytesRef
return BytesRef

TestClone() public method

public TestClone ( ) : void
return void

TestHighFreqs() public method

public TestHighFreqs ( ) : void
return void

TestLotsOfFields() public method

public TestLotsOfFields ( ) : void
return void

TestMerge() public method

public TestMerge ( ) : void
return void

TestMixedOptions() public method

public TestMixedOptions ( ) : void
return void

TestRandom() public method

public TestRandom ( ) : void
return void

TestRareVectors() public method

public TestRareVectors ( ) : void
return void

ValidOptions() protected method

protected ValidOptions ( ) : IEnumerable
return IEnumerable

ValidOptions() protected method

protected ValidOptions ( Options startInc, Options endInc ) : IEnumerable
startInc Options
endInc Options
return IEnumerable