C# Class Lucene.Net.Search.Function.FunctionTestSetup

Setup for function tests
Inheritance: Lucene.Net.Util.LuceneTestCase
Show file Open project: synhershko/lucene.net

Public Properties

Property Type Description
TEST_SCORE_TOLERANCE_DELTA float

Protected Properties

Property Type Description
anlzr Lucene.Net.Analysis.Analyzer
dir Lucene.Net.Store.Directory

Public Methods

Method Description
FunctionTestSetup ( ) : System
FunctionTestSetup ( String name, bool doMultiSegment ) : System
FunctionTestSetup ( System name ) : System

Protected Methods

Method Description
ExpectedFieldScore ( System docIDFieldVal ) : float
Id2String ( int scoreAndID ) : System.String
Log ( System o ) : void

Private Methods

Method Description
AddDoc ( Lucene.Net.Index.IndexWriter iw, int i ) : void
SetUp ( ) : void
TearDown ( ) : void
TextLine ( int docNum ) : System.String

Method Details

ExpectedFieldScore() protected method

protected ExpectedFieldScore ( System docIDFieldVal ) : float
docIDFieldVal System
return float

FunctionTestSetup() public method

public FunctionTestSetup ( ) : System
return System

FunctionTestSetup() public method

public FunctionTestSetup ( String name, bool doMultiSegment ) : System
name String
doMultiSegment bool
return System

FunctionTestSetup() public method

public FunctionTestSetup ( System name ) : System
name System
return System

Id2String() protected method

protected Id2String ( int scoreAndID ) : System.String
scoreAndID int
return System.String

Log() protected method

protected Log ( System o ) : void
o System
return void

Property Details

TEST_SCORE_TOLERANCE_DELTA public static property

Actual score computation order is slightly different than assumptios this allows for a small amount of variation
public static float TEST_SCORE_TOLERANCE_DELTA
return float

anlzr protected property

protected Lucene.Net.Analysis.Analyzer anlzr
return Lucene.Net.Analysis.Analyzer

dir protected property

protected Lucene.Net.Store.Directory dir
return Lucene.Net.Store.Directory