C# Class Lucene.Net.Index.TestBackwardsCompatibility

Datei anzeigen Open project: apache/lucenenet

Public Methods

Method Description
ChangeIndexNoAdds ( Random random, Directory dir ) : void
ChangeIndexWithAdds ( Random random, Directory dir, string origOldName ) : void
CreateIndex ( string dirName, bool doCFS, bool fullyMerged ) : DirectoryInfo
SearchIndex ( Directory dir, string oldName ) : void
TearDown ( ) : void

Private Methods

Method Description
AddDoc ( IndexWriter writer, int id ) : void
AddNoProxDoc ( IndexWriter writer ) : void
AfterClass ( ) : void
BeforeClass ( ) : void
CheckAllSegmentsUpgraded ( Directory dir ) : int
Compare ( string name, string v ) : int
CountDocs ( Lucene.Net.Index.DocsEnum docs ) : int
DoTestHits ( ScoreDoc hits, int expectedCount, IndexReader reader ) : void
GetNumberOfSegments ( Directory dir ) : int
NewIndexUpgrader ( Directory dir ) : IndexUpgrader

Randomizes the use of some of hte constructor variations

TestAddOldIndexes ( ) : void
TestAddOldIndexesReader ( ) : void
TestCommandLineArgs ( ) : void
TestFullyMergeOldIndex ( ) : void
TestIndexOldIndex ( ) : void
TestIndexOldIndexNoAdds ( ) : void
TestMoreTerms ( ) : void
TestNextIntoWrongField ( ) : void
TestNumericFields ( ) : void
TestOldVersions ( ) : void
TestSearchOldIndex ( ) : void
TestUnsupportedOldIndexes ( ) : void
TestUpgradeOldIndex ( ) : void
TestUpgradeOldSingleSegmentIndexWithAdditions ( ) : void

Method Details

ChangeIndexNoAdds() public method

public ChangeIndexNoAdds ( Random random, Directory dir ) : void
random System.Random
dir System.IO.Directory
return void

ChangeIndexWithAdds() public method

public ChangeIndexWithAdds ( Random random, Directory dir, string origOldName ) : void
random System.Random
dir System.IO.Directory
origOldName string
return void

CreateIndex() public method

public CreateIndex ( string dirName, bool doCFS, bool fullyMerged ) : DirectoryInfo
dirName string
doCFS bool
fullyMerged bool
return System.IO.DirectoryInfo

SearchIndex() public method

public SearchIndex ( Directory dir, string oldName ) : void
dir System.IO.Directory
oldName string
return void

TearDown() public method

public TearDown ( ) : void
return void