Table of Contents

Class SearchHit

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

One search hit, from SearchResults.

public sealed class SearchHit
Inheritance
SearchHit
Inherited Members

Properties

Cursor

An opaque token marking this hit's position in the result order. Pass it as SearchAfter (with the same OrderBy) to get the hits that follow it.

Document

The hit's stored fields (or those selected by Fields).

Score

Relevance score (BM25); higher is better. NaN when sorted by fields only (OrderBy without Score()), since scoring is skipped.

Snippets

Snippets keyed by field name, for the fields requested in Snippets; empty if none were requested.

SortValues

When OrderBy is set, the hit's value for each sort key, in order: a string, ulong, long, double, bool, DateTimeOffset, byte[] or IPAddress for a field (null if the document has none), or a float for Score(). Empty when sorted by relevance only.