CheckExplanations() public static method

Asserts that the explanation value for every document matching a query corresponds with the true score.
public static CheckExplanations ( Query query, string defaultFieldName, IndexSearcher searcher ) : void
query Query the query to test
defaultFieldName string used for displaing the query in assertion messages
searcher IndexSearcher the searcher to test the query against
return void
Beispiel #1
0
 /// <summary>
 /// Deep check that explanations of a query 'score' correctly. </summary>
 public static void CheckExplanations(Query q, IndexSearcher s)
 {
     CheckHits.CheckExplanations(q, null, s, true);
 }