Method Explain
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
Explain(Query, SearchHit)
Explains how query scores the document of hit, for
debugging relevance. The hit must come from this searcher.
public Explanation Explain(Query query, SearchHit hit)
Parameters
Returns
Examples
Console.WriteLine(searcher.Explain(query, results[0]));
Exceptions
- ArgumentException
hitcame from another searcher.- TantivyException
With InvalidArgument if the query doesn't match the document, or doesn't fit the schema.