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

Method search

backend/src/store.rs:256–279  ·  view source on GitHub ↗
(
        &self,
        parent_topic: &git::Topic,
        search: &git::Search,
    )

Source from the content-addressed store, hash-verified

254 }
255
256 pub async fn search(
257 &self,
258 parent_topic: &git::Topic,
259 search: &git::Search,
260 ) -> Result<git::FindMatchesResult> {
261 log::debug!("search: {:?}", search);
262
263 let fetcher = git::RedisFetchDownSet {
264 client: Arc::clone(&self.git),
265 redis: Arc::clone(&self.redis),
266 };
267
268 git::FindMatches {
269 context_repo_id: parent_topic.key.1.to_owned(),
270 limit: 100,
271 locale: Locale::EN,
272 recursive: true,
273 search: search.to_owned(),
274 timespec: Timespec,
275 topic_id: parent_topic.key.0.to_owned(),
276 viewer: Arc::clone(&self.viewer),
277 }
278 .call(&self.git, &fetcher)
279 }
280
281 pub async fn search_topics(
282 &self,

Callers 1

childrenMethod · 0.80

Calls 1

callMethod · 0.45

Tested by

no test coverage detected