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
use *;
/// Ranks transcript matches by discussion density, and adds an exact opt-in.
///
/// The default order fell through to `ts_rank_cd` for single-term queries,
/// where that is only "how often the speaker repeated the word" - a stutter
/// outranked a considered mention. `matched_terms` now leads into
/// `context_matches`, the number of matching cues within +-30 s of this one,
/// which measures the discussion rather than the repetition. `ts_rank_cd` is
/// kept below both.
///
/// `p_exact` requires the query's words literally and adjacently (on the
/// `simple` configuration, so no stemming): `?q=racing&exact=true` no longer
/// returns cues whose only match is "race" or "races".
///
/// Both the parameter list and the result type change, so this drops and
/// recreates `search_transcripts` and `count_transcripts` rather than
/// replacing them. See the SQL header for the full reasoning.
;
const UP: &str = include_str!;