Lucene.Net.Search.Searcher.Explain C# (CSharp) Метод

Explain() публичный Метод

Returns an Explanation that describes how doc scored against query.

This is intended to be used in developing Similarity implementations, and, for good performance, should not be displayed with every hit. Computing an explanation is as expensive as executing the query over the entire index.

public Explain ( Query query, int doc ) : Explanation
query Query
doc int
Результат Explanation
		public virtual Explanation Explain(Query query, int doc)
		{
			return Explain(CreateWeight(query), doc);
		}
		

Same methods

Searcher::Explain ( Weight weight, int doc ) : Explanation

Usage Example

Пример #1
0
            public override void  Collect(int doc)
            {
                Explanation exp = null;

                doc = doc + base_Renamed;
                try
                {
                    exp = s.Explain(q, doc);
                }
                catch (System.IO.IOException e)
                {
                    throw new System.SystemException("exception in hitcollector of [[" + d + "]] for #" + doc, e);
                }

                Assert.IsNotNull(exp, "Explanation of [[" + d + "]] for #" + doc + " is null");
                Lucene.Net.Search.CheckHits.VerifyExplanation(d, doc, scorer.Score(), deep, exp);
            }
All Usage Examples Of Lucene.Net.Search.Searcher::Explain