()
| 85 | |
| 86 | impl Search { |
| 87 | pub fn empty() -> Self { |
| 88 | Self { |
| 89 | normalized: Phrase::parse(""), |
| 90 | urls: BTreeSet::new(), |
| 91 | tokens: BTreeSet::new(), |
| 92 | topic_specs: BTreeSet::new(), |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | pub fn parse(input: &str) -> Result<Self> { |
| 97 | let mut tokens = BTreeSet::new(); |