(
&mut self,
client: &Client,
repo_id: RepoId,
entry: &SearchEntry,
searches: S,
)
| 704 | } |
| 705 | |
| 706 | pub fn remove_searches<'s, S>( |
| 707 | &mut self, |
| 708 | client: &Client, |
| 709 | repo_id: RepoId, |
| 710 | entry: &SearchEntry, |
| 711 | searches: S, |
| 712 | ) -> Result<()> |
| 713 | where |
| 714 | S: Iterator<Item = &'s Search>, |
| 715 | { |
| 716 | for search in searches { |
| 717 | for token in &search.tokens { |
| 718 | let key = repo_id.index_key(token)?; |
| 719 | self.search_token_index(client, &key)? |
| 720 | .remove(entry, token.to_owned())?; |
| 721 | } |
| 722 | } |
| 723 | |
| 724 | Ok(()) |
| 725 | } |
| 726 | |
| 727 | pub fn remove_synonyms( |
| 728 | &mut self, |
no test coverage detected