Lucene.Net.Search.CheckHits.CheckExplanations C# (CSharp) Méthode

CheckExplanations() public static méthode

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
Résultat void
        public static void CheckExplanations(Query query, string defaultFieldName, IndexSearcher searcher)
        {
            CheckExplanations(query, defaultFieldName, searcher, false);
        }

Same methods

CheckHits::CheckExplanations ( Query query, string defaultFieldName, IndexSearcher searcher, bool deep ) : void

Usage Example

Exemple #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);
 }