pub struct SearchRows {
pub hits: Vec<SearchHit>,
pub strict_hit_count: usize,
pub relaxed_hit_count: usize,
pub vector_hit_count: usize,
pub fallback_used: bool,
pub was_degraded: bool,
}Expand description
Result set returned by an adaptive text-search execution.
Fields§
§hits: Vec<SearchHit>Matched hits in descending score order.
strict_hit_count: usizeCount of strict-branch hits (Phase 1: equals hits.len()).
relaxed_hit_count: usizeCount of relaxed-branch hits (Phase 1: always 0).
vector_hit_count: usizeCount of vector-branch hits. Always 0 after Phase 10 because no
vector execution path exists yet; reserved so that when vector
retrieval lands in a later phase, the wire shape already has the
counter and consumers do not need a breaking change.
fallback_used: boolWhether the relaxed fallback branch fired (Phase 1: always false).
was_degraded: boolWhether a capability miss caused the query to degrade to an empty
result set (mirrors QueryRows::was_degraded).
Trait Implementations§
Source§impl Clone for SearchRows
impl Clone for SearchRows
Source§fn clone(&self) -> SearchRows
fn clone(&self) -> SearchRows
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 SearchRows
impl Debug for SearchRows
Source§impl Default for SearchRows
impl Default for SearchRows
Source§fn default() -> SearchRows
fn default() -> SearchRows
Returns the “default value” for a type. Read more
Source§impl PartialEq for SearchRows
impl PartialEq for SearchRows
impl StructuralPartialEq for SearchRows
Auto Trait Implementations§
impl Freeze for SearchRows
impl RefUnwindSafe for SearchRows
impl Send for SearchRows
impl Sync for SearchRows
impl Unpin for SearchRows
impl UnsafeUnpin for SearchRows
impl UnwindSafe for SearchRows
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