VectorSearchResult

The hits of one VectorQuery, nearest first, found on one snapshot of the store (SPEC.md §8, §11.3). The search compares the vectors when it starts; the hits' documents are read only when a hit is read, from the same snapshot, until the result is closed. Not thread-safe; hits may be read from other threads.

Properties

Link copied to clipboard
abstract val hits: List<VectorHit>

Every hit, nearest first, and documents of equal distance by docId ascending; at most the query's k.

Link copied to clipboard
abstract val snapshotLsn: Long

The snapshot the result reads, to correlate it with other searches.

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
open operator fun iterator(): Iterator<VectorHit>

The hits in their order.