Lucene.Net.Search.CheckHits.CheckExplanations C# (CSharp) Method

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
        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

コード例 #1
0
ファイル: QueryUtils.cs プロジェクト: zalintyre/lucenenet
 /// <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);
 }