Lucene.Net.Search.CheckHits.CheckExplanations C# (CSharp) 메소드

CheckExplanations() 공개 정적인 메소드

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
리턴 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
 /// <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);
 }