pub struct MultiRepoManager { /* private fields */ }Expand description
Manages multiple repository roots and performs cross-repo search with RRF fusion.
Implementations§
Source§impl MultiRepoManager
impl MultiRepoManager
pub fn new() -> Self
pub fn with_rrf_k(self, k: f64) -> Self
pub fn from_config(config: &MultiRepoConfig) -> Result<Self, String>
pub fn add_root( &mut self, path: &str, alias: Option<&str>, ) -> Result<(), String>
pub fn remove_root(&mut self, path: &str) -> Result<(), String>
pub fn list_roots(&self) -> Vec<RootInfo>
pub fn root_count(&self) -> usize
pub fn is_active(&self) -> bool
Sourcepub fn resolve_root(&self, repo: &str) -> Option<usize>
pub fn resolve_root(&self, repo: &str) -> Option<usize>
Resolve a repo alias or path to the corresponding root index.
Sourcepub fn search(
&mut self,
query: &str,
max_results: usize,
filter_roots: Option<&[String]>,
) -> Vec<FusedSearchResult>
pub fn search( &mut self, query: &str, max_results: usize, filter_roots: Option<&[String]>, ) -> Vec<FusedSearchResult>
Search across all roots (or a subset) and merge with Reciprocal Rank Fusion.
Sourcepub fn search_single_repo(
&mut self,
repo: &str,
query: &str,
max_results: usize,
) -> Result<Vec<RepoSearchResult>, String>
pub fn search_single_repo( &mut self, repo: &str, query: &str, max_results: usize, ) -> Result<Vec<RepoSearchResult>, String>
Search within a specific repo root (no RRF, single-repo query).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiRepoManager
impl RefUnwindSafe for MultiRepoManager
impl Send for MultiRepoManager
impl Sync for MultiRepoManager
impl Unpin for MultiRepoManager
impl UnsafeUnpin for MultiRepoManager
impl UnwindSafe for MultiRepoManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more