pub struct FederatedSearch { /* private fields */ }Expand description
Federated search across multiple microscope indices.
Implementations§
Source§impl FederatedSearch
impl FederatedSearch
Sourcepub fn from_config(config: &Config) -> Result<Self, String>
pub fn from_config(config: &Config) -> Result<Self, String>
Create from the main config’s federation section.
Sourcepub fn recall(&self, query: &str, k: usize) -> Vec<FederatedResult>
pub fn recall(&self, query: &str, k: usize) -> Vec<FederatedResult>
Recall query across all federated indices in parallel.
Sourcepub fn find_text(&self, query: &str, k: usize) -> Vec<FederatedResult>
pub fn find_text(&self, query: &str, k: usize) -> Vec<FederatedResult>
Text search across all federated indices in parallel.
Auto Trait Implementations§
impl Freeze for FederatedSearch
impl RefUnwindSafe for FederatedSearch
impl Send for FederatedSearch
impl Sync for FederatedSearch
impl Unpin for FederatedSearch
impl UnsafeUnpin for FederatedSearch
impl UnwindSafe for FederatedSearch
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> 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