#[non_exhaustive]pub struct SearchResult {
pub projection_cursor: u64,
pub soft_fallback: Option<SoftFallback>,
pub results: Vec<SearchHit>,
pub explanation: Option<Explanation>,
}Expand description
Hybrid search result. results carries structured SearchHits in
vector-first, dedup-on-body order. Derives Clone, Debug, PartialEq but
not Eq — each hit carries a score: f64.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.projection_cursor: u64§soft_fallback: Option<SoftFallback>§results: Vec<SearchHit>§explanation: Option<Explanation>0.8.8 EXP-OBS (Slice 5) — opt-in retrieval explanation sidecar.
Some ONLY on the search_explained path; None for every default
(explain=false) search, so results + projection_cursor stay
byte-identical to the pre-0.8.8 shape (R-OBS-2 zero-cost contract,
HITL-ratified sidecar carrier — see
dev/design/0.8.8-explain-and-telemetry-adr.md §A.2). Field-set is
PROPOSED/ratification-pending; additive inside Explanation so later
amendments do not reshape SearchResult/SearchHit.
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SearchResult
impl Debug for SearchResult
Source§impl PartialEq for SearchResult
impl PartialEq for SearchResult
Source§fn eq(&self, other: &SearchResult) -> bool
fn eq(&self, other: &SearchResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchResult
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnsafeUnpin for SearchResult
impl UnwindSafe for SearchResult
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