MCPcopy Create free account
hub / github.com/emwalker/digraph / remove_searches

Method remove_searches

backend/src/git/index.rs:706–725  ·  view source on GitHub ↗
(
        &mut self,
        client: &Client,
        repo_id: RepoId,
        entry: &SearchEntry,
        searches: S,
    )

Source from the content-addressed store, hash-verified

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,

Callers 2

remove_linkMethod · 0.80
remove_topicMethod · 0.80

Calls 3

index_keyMethod · 0.80
search_token_indexMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected