
TopDocs
- Namespace
- Rowles.LeanCorpus.Search.Scoring
- Assembly
- Rowles.LeanCorpus.dll
Encapsulates the results of a search query.
public sealed class TopDocs
- Inheritance
-
TopDocs
TopDocs(int, ScoreDoc[])
Initialises a new TopDocs with the given total hit count and scored results.
TopDocs(int, ScoreDoc[], bool)
Initialises a new TopDocs with the given total hit count, scored results, and partial-result indicator.
Empty
Gets an empty TopDocs with zero hits.
IsPartial
Gets a value indicating whether the search terminated before all matches were
visited, due to a SearchOptions.Timeout deadline, cancellation, or bounded
index-sort collection.
When true, ScoreDocs and TotalHits reflect
only the work completed before termination.
ScoreDocs
Gets the array of scored documents in descending score order.
TotalHits
Gets the total number of documents that matched the query (may be larger than ScoreDocs).