1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Wire types for forwarding the code-search keyword + exact lanes from a reader `serve` to the
//! machine daemon.
//!
//! Both lanes are answered from fjall — BM25 postings for the keyword lane, `symbols_by_name` for
//! the exact lane — and fjall's directory lock is exclusive, so a reader session opens the store
//! without an `IndexDb` and cannot run either. Before this forward that was a SILENT degradation:
//! `code` mode `semantic` returned an empty hit list in microseconds, indistinguishable from "no
//! matches", even though `[code_search] enabled` defaults to true and the config documents the
//! keyword lane as working without embeddings.
//!
//! Only the RANKING crosses the wire. Chunk bodies live in content-addressed blobs, which a reader
//! can read concurrently, so the caller hydrates hits itself and keeps RRF fusion and reranking
//! local — the daemon never serializes chunk text.
use ;
/// A ranked lane lookup forwarded to the daemon, answered against the workspace's read-write fjall
/// index.
/// The daemon's answer to a [`CodeSearchLaneQuery`]: ranked chunk ids, best first.
///
/// Carries no bodies by design (see the module docs). Not `Eq` — the BM25 score is an `f32`.