Table of Contents

Public classSealed SearchEvent

Namespace
Rowles.LeanLucene.Diagnostics
Assembly
Rowles.LeanLucene.dll

A single search event captured by SearchAnalytics.

public sealed record SearchEvent : IEquatable<SearchEvent>
SearchEvent

Properties

Public property CacheHit

Gets a value indicating whether this search was served from the query cache.

Public property ElapsedMs

Gets the elapsed search time in milliseconds, rounded to two decimal places.

Public property Query

Gets the string representation of the query.

Public property QueryType

Gets the short type name of the query (e.g., TermQuery).

Public property Timestamp

Gets the UTC timestamp when the search was executed.

Public property TotalHits

Gets the total number of documents that matched the query.