Skip to main content

Module query

Module query 

Source
Expand description

Read-only query layer over the index.

Retrieval contract:

  1. Resolve the group first (exact key, case-insensitive key, normalized name, substring, then fuzzy). More than one candidate in the winning tier is reported as ambiguous; Leviathan never guesses.
  2. Rank matching records by BM25 (title weighted), times the configured boosts, then recency on ties. Group scope and filters are posting-list intersections on synthetic tokens, so they cost less as they narrow.
  3. With no query words, list records newest first.
  4. If a group has no match, fall back to clearly labeled matches from other groups.

Structs§

Description
Everything an agent needs to query this index well.
FacetSummary
Filter
GroupMatch
SearchOutcome
SearchRequest
Store

Enums§

Scope
Sort
Status

Constants§

MAX_LIMIT