pub struct SearchHit {
pub media_id: i64,
pub media_kind: MediaKind,
pub title_display: String,
pub synopsis: Option<String>,
pub score: f64,
}Expand description
A search result returned by local FTS5 or remote provider search.
The score field reflects BM25 ranking for local FTS queries; for remote
provider searches it reflects the provider’s native relevance ranking.
Fields§
§media_id: i64Primary key of the matching media record in the local database.
media_kind: MediaKindMedia kind of the matching record.
title_display: StringDisplay title of the matching record.
synopsis: Option<String>Synopsis (may be None if truncated by FTS ranking).
score: f64BM25 score (lower = more relevant for FTS; higher = more relevant for remote).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SearchHit
impl<'de> Deserialize<'de> for SearchHit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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