pub struct SearchHit {
pub conversation_id: String,
pub title: String,
pub seq: i64,
pub snippet: String,
pub rank: f64,
}Expand description
One full-text recall hit from ConversationStore::search (17.3).
rank is the raw FTS5 bm25 score: negative, and smaller (more negative)
= better. search returns hits best-first; the value is exposed so
17.4/17.5 callers can show or threshold it. snippet is the matched
column’s excerpt (>>>match<<<, …-trimmed) — deliberately the only
content returned.
Fields§
§conversation_id: StringThe conversation the matching turn belongs to.
title: StringThat conversation’s current title.
seq: i64The matching turn’s §6 per-writer tick (its position in the chain).
snippet: Stringsnippet() of the matched column: ±~10 tokens of context around the
match, which is wrapped in >>>/<<<; … marks trimmed edges.
rank: f64Raw bm25 rank (negative; more negative = better match).
Trait Implementations§
impl StructuralPartialEq for SearchHit
Auto Trait Implementations§
impl Freeze for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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