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
use *;
/// Splits transcript search out of the unified search, and into the database.
///
/// `/search` matched titles, descriptions, tags *and* transcript bodies; the
/// transcript tier was reachable by accident through `in=transcript`, so whether
/// a query could find a video by what was said in it depended on which videos
/// happened to have been fetched. It also ranked its seek position differently
/// from `/transcripts/search`, so the two endpoints could disagree about where
/// in a video a phrase was mentioned.
///
/// `search_all_hits` loses the tier. What is lost with it: on the dev corpus
/// `?q=root+canal` returns five videos, all five findable only in their
/// transcripts - still returned, by `search_transcripts()` behind
/// `/transcripts/search`, which is the endpoint built to be honest about
/// position and rank.
///
/// `search_transcripts()` and `count_transcripts()` are that endpoint's query,
/// which the API previously assembled as a SQL string per request.
///
/// `match_tier` is not renumbered. Tier 0 can no longer be produced, but 1 and 2
/// keep their values so stored data and clients comparing against them keep
/// working.
;
const UP: &str = include_str!;