pub struct SearchEngine;Expand description
Motor de búsqueda multi-señal con RRF (Reciprocal Rank Fusion). Combina FTS5 + fuzzy + semántica + entidades + recencia usando RRF.
Implementations§
Source§impl SearchEngine
impl SearchEngine
Sourcepub fn search(
&self,
conn: &Connection,
query: &SearchQuery,
_weights: &SearchWeights,
semantic_scores: Option<&HashMap<Uuid, f32>>,
) -> Result<Vec<SearchResult>>
pub fn search( &self, conn: &Connection, query: &SearchQuery, _weights: &SearchWeights, semantic_scores: Option<&HashMap<Uuid, f32>>, ) -> Result<Vec<SearchResult>>
Multi-signal search using Reciprocal Rank Fusion.
Señales:
- FTS5 full-text search
- Fuzzy title matching
- Semantic (cosine) similarity
- Entity name matching
- Temporal recency
Cada señal produce un ranking. RRF fusiona los rankings en un score final.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchEngine
impl RefUnwindSafe for SearchEngine
impl Send for SearchEngine
impl Sync for SearchEngine
impl Unpin for SearchEngine
impl UnsafeUnpin for SearchEngine
impl UnwindSafe for SearchEngine
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
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> ⓘ
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