OpenSearch.Client by OpenSearch and contributors

<PackageReference Include="OpenSearch.Client" Version="1.6.0" />

.NET API 3,588,216 bytes

 TotalHits

public class TotalHits
Description of the total number of hits of a query. The total hit count can't generally be computed accurately without visiting all matches, which is costly for queries that match lots of documents. Given that it is often enough to have a lower bounds of the number of hits, such as "there are more than 1000 hits", OpenSearch has options to stop counting as soon as a threshold has been reached in order to improve query times.
public TotalHitsRelation? Relation { get; }

Whether Value is the exact hit count, in which case Relation is EqualTo, or a lower bound of the total hit count, in which case Relation is GreaterThanOrEqualTo

public long Value { get; }

The value of the total hit count. Must be interpreted in the context of Relation

public TotalHits()