
SearchEvent
- Namespace
- Rowles.LeanLucene.Diagnostics
- Assembly
- Rowles.LeanLucene.dll
A single search event captured by SearchAnalytics.
public sealed record SearchEvent : IEquatable<SearchEvent>
SearchEvent
Properties
CacheHit
Gets a value indicating whether this search was served from the query cache.
ElapsedMs
Gets the elapsed search time in milliseconds, rounded to two decimal places.
Query
Gets the string representation of the query.
QueryType
Gets the short type name of the query (e.g.,
TermQuery).
Timestamp
Gets the UTC timestamp when the search was executed.
TotalHits
Gets the total number of documents that matched the query.