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
use HashMap;
use crateKey;
/// Per-query relevance scores injected into the query engine by the caller. The engine itself
/// computes no scores and holds no index — the `diwe` engine crate resolves a
/// [`crate::query::SearchSpec`] (BM25 + fuzzy, fused with RRF) into this map and passes it to
/// `execute_with_scores`.
///
/// When a `find` query carries a `search` clause, the keys present in [`QueryScores::fused`]
/// define the search match set (membership); their scores order the matches (higher is more
/// relevant). An empty `QueryScores` means no search was resolved.