C# Class Lucene.Net.Tests.Queries.TestCustomScoreQuery

Test CustomScoreQuery search.
Inheritance: Lucene.Net.Tests.Queries.Function.FunctionTestSetup
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Private Methods

Method Description
DoTestCustomScore ( ValueSource valueSource, double dboost ) : void
LogResult ( string msg, IndexSearcher s, Query q, int doc, float score1 ) : void
SetUp ( ) : void
TestCustomExternalQuery ( ) : void
TestCustomScoreByte ( ) : void
TestCustomScoreFloat ( ) : void
TestCustomScoreInt ( ) : void
TestCustomScoreShort ( ) : void
TestRewrite ( ) : void
TopDocsToMap ( Lucene.Net.Search.TopDocs td ) : float>.IDictionary

Since custom scoring modified the order of docs, map results by doc ids so that we can later compare/verify them.

VerifyResults ( float boost, IndexSearcher s, float>.IDictionary h1, float>.IDictionary h2customNeutral, float>.IDictionary h3CustomMul, float>.IDictionary h4CustomAdd, float>.IDictionary h5CustomMulAdd, Query q1, Query q2, Query q3, Query q4, Query q5 ) : void