Table of Contents

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

query Query
hit SearchHit

Returns

Explanation

Examples

Console.WriteLine(searcher.Explain(query, results[0]));

Exceptions

ArgumentException

hit came from another searcher.

TantivyException

With InvalidArgument if the query doesn't match the document, or doesn't fit the schema.