pub struct TextSearcher { /* private fields */ }Expand description
Coordinates Frigg’s retrieval pipeline for a configured workspace set, blending lexical, graph, path-witness, and optional semantic signals into ranked evidence for higher layers.
Implementations§
Source§impl TextSearcher
impl TextSearcher
Sourcepub fn new(config: FriggConfig) -> Self
pub fn new(config: FriggConfig) -> Self
Creates a searcher from workspace configuration and a fresh manifest candidate cache.
Sourcepub fn search(&self, query: SearchTextQuery) -> FriggResult<Vec<TextMatch>>
pub fn search(&self, query: SearchTextQuery) -> FriggResult<Vec<TextMatch>>
Runs literal substring search across configured repositories with default filters.
Sourcepub fn search_literal(
&self,
query: SearchTextQuery,
repository_id_filter: Option<&str>,
) -> FriggResult<Vec<TextMatch>>
pub fn search_literal( &self, query: SearchTextQuery, repository_id_filter: Option<&str>, ) -> FriggResult<Vec<TextMatch>>
Runs literal substring search, optionally scoping to one repository id.
Sourcepub fn search_literal_with_filters(
&self,
query: SearchTextQuery,
filters: SearchFilters,
) -> FriggResult<Vec<TextMatch>>
pub fn search_literal_with_filters( &self, query: SearchTextQuery, filters: SearchFilters, ) -> FriggResult<Vec<TextMatch>>
Runs literal search with repository and language filters.
Sourcepub fn search_literal_with_filters_diagnostics(
&self,
query: SearchTextQuery,
filters: SearchFilters,
) -> FriggResult<SearchExecutionOutput>
pub fn search_literal_with_filters_diagnostics( &self, query: SearchTextQuery, filters: SearchFilters, ) -> FriggResult<SearchExecutionOutput>
Like Self::search_literal_with_filters but returns diagnostics and backend notes.
Sourcepub fn search_regex(
&self,
query: SearchTextQuery,
repository_id_filter: Option<&str>,
) -> FriggResult<Vec<TextMatch>>
pub fn search_regex( &self, query: SearchTextQuery, repository_id_filter: Option<&str>, ) -> FriggResult<Vec<TextMatch>>
Runs bounded-regex search, optionally scoping to one repository id.
Sourcepub fn search_regex_with_filters(
&self,
query: SearchTextQuery,
filters: SearchFilters,
) -> FriggResult<Vec<TextMatch>>
pub fn search_regex_with_filters( &self, query: SearchTextQuery, filters: SearchFilters, ) -> FriggResult<Vec<TextMatch>>
Runs regex search with repository and language filters.
Sourcepub fn search_regex_with_filters_diagnostics(
&self,
query: SearchTextQuery,
filters: SearchFilters,
) -> FriggResult<SearchExecutionOutput>
pub fn search_regex_with_filters_diagnostics( &self, query: SearchTextQuery, filters: SearchFilters, ) -> FriggResult<SearchExecutionOutput>
Like Self::search_regex_with_filters but returns diagnostics and backend notes.
Sourcepub fn search_hybrid(
&self,
query: SearchHybridQuery,
) -> FriggResult<SearchHybridExecutionOutput>
pub fn search_hybrid( &self, query: SearchHybridQuery, ) -> FriggResult<SearchHybridExecutionOutput>
Runs multi-channel hybrid retrieval with default filters.
Sourcepub fn search_hybrid_with_filters(
&self,
query: SearchHybridQuery,
filters: SearchFilters,
) -> FriggResult<SearchHybridExecutionOutput>
pub fn search_hybrid_with_filters( &self, query: SearchHybridQuery, filters: SearchFilters, ) -> FriggResult<SearchHybridExecutionOutput>
Runs hybrid retrieval with repository and language filters.
Auto Trait Implementations§
impl Freeze for TextSearcher
impl RefUnwindSafe for TextSearcher
impl Send for TextSearcher
impl Sync for TextSearcher
impl Unpin for TextSearcher
impl UnsafeUnpin for TextSearcher
impl UnwindSafe for TextSearcher
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
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>
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