Skip to main content

Module query

Module query 

Source
Expand description

Portable retained search operations.

Build a QueryScope and ScopedQuery with vector or text options, then execute a QueryRequest through crate::DatabaseBackend::query. Read ScoredRecord::score_kind before interpreting scores and return page tokens unchanged to the same applicable operation.

Structs§

NearestRequest
Request to perform nearest-neighbor vector search.
QueryResponse
Ranked hits and optional continuation.
QueryScope
Shared collection and result scope.
ScopedQuery
Shared scope plus query-family options.
ScoredRecord
One ranked record.
ScrollRequest
Request to iterate records through a query-scoped scroll API.
TextQueryOptions
Text field and result options.
TextSearchRequest
Request to run a full-text search.
VectorQueryOptions
Vector field and result options.
VectorSearchParams
Vector search shaping and portable tuning.

Enums§

DenseVector
Dense vector payload stored in a backend-supported numeric representation.
DistanceMetric
Distance metric used for vector search and index configuration.
Projection
Fields returned for a record.
QueryRequest
Retained cross-backend query operations.
ScoreKind
Meaning of a returned score.
VectorCoercionPolicy
Controls numeric conversion when a backend requires f32 vectors.