pub struct SearchFtsHit {
pub id: String,
pub file_path: String,
pub title: String,
pub title_highlight: String,
pub content_snippet: String,
pub score: f64,
pub rank: u64,
pub raw_score: f64,
}Expand description
FTS 命中文档(中英双语)。 FTS hit payload (bilingual).
Fields§
§id: String业务 ID。 Business identifier.
file_path: String文件路径或逻辑路径。 File path or logical path.
title: String标题。 Title field.
title_highlight: String带命中高亮的标题。 Highlighted title text.
content_snippet: String带上下文片段的正文摘要。 Content snippet with query highlights.
score: f64标准化分数,统一约定为“越大越好”。 Normalized score, always “higher is better”.
rank: u64当前结果中的排序名次。 Rank inside the current result set.
raw_score: f64SQLite bm25() 原始分值。
Raw SQLite bm25() score.
Trait Implementations§
Source§impl Clone for SearchFtsHit
impl Clone for SearchFtsHit
Source§fn clone(&self) -> SearchFtsHit
fn clone(&self) -> SearchFtsHit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchFtsHit
impl Debug for SearchFtsHit
Source§impl<'de> Deserialize<'de> for SearchFtsHit
impl<'de> Deserialize<'de> for SearchFtsHit
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
Source§impl PartialEq for SearchFtsHit
impl PartialEq for SearchFtsHit
Source§impl Serialize for SearchFtsHit
impl Serialize for SearchFtsHit
impl StructuralPartialEq for SearchFtsHit
Auto Trait Implementations§
impl Freeze for SearchFtsHit
impl RefUnwindSafe for SearchFtsHit
impl Send for SearchFtsHit
impl Sync for SearchFtsHit
impl Unpin for SearchFtsHit
impl UnsafeUnpin for SearchFtsHit
impl UnwindSafe for SearchFtsHit
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request