Skip to main content

Module query

Module query 

Source

Structs§

CacheStats
FieldMask
FiltersSummary
Summary of active filters for explanation
ParsedQuery
Parsed structure of the query
ParsedSubTerm
Sub-component of a parsed term
ParsedTerm
Parsed term from the query
QueryExplanation
Comprehensive query explanation for debugging and understanding search behavior
QuerySuggestion
A “did-you-mean” suggestion when search returns zero hits.
SearchClient
SearchClientOptions
SearchFilters
SearchHit
SearchResult
Result of a search operation with metadata about how matches were found
StringInterner
Thread-safe string interner with bounded memory via LRU eviction. Uses LruCache<Arc, Arc> where key and value are the same Arc, enabling O(1) lookup via Borrow trait while preserving LRU semantics.

Enums§

IndexStrategy
How the index will execute this query
MatchType
Indicates how a search result matched the query. Used for ranking: exact matches rank higher than wildcard matches.
ProgressivePhaseKind
ProgressiveSearchEvent
QueryCost
Rough complexity indicator for query execution
QueryType
Classification of query type for explanation purposes
SearchMode
SemanticTierMode
Execution strategy for semantic search.
SuggestionKind
Type of suggestion for did-you-mean

Constants§

NO_LIMIT_RESULT_MAX
NO_LIMIT_RESULT_MIN
Upper bound on how many documents a limit == 0 (“no limit”) search is allowed to materialize. Each SearchHit carries the full message content string (roughly 80 KB p99 in real corpora), so an unlimited search on a ~500k-row user history can easily allocate tens of gigabytes of heap AND drive sustained multi-GB/s reads off the Tantivy .store file and SQLite rows, crushing the whole machine.

Functions§

rrf_fuse_hits
Fuse lexical + semantic hits using Reciprocal Rank Fusion (RRF). Applies deterministic tie-breaking and returns the requested page slice.
sql_placeholders
Build a comma-separated list of SQL placeholders with pre-allocated capacity.