Skip to main content

SearchRows

Struct SearchRows 

Source
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: usize

Count of strict-branch hits (Phase 1: equals hits.len()).

§relaxed_hit_count: usize

Count of relaxed-branch hits (Phase 1: always 0).

§vector_hit_count: usize

Count 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: bool

Whether the relaxed fallback branch fired (Phase 1: always false).

§was_degraded: bool

Whether a capability miss caused the query to degrade to an empty result set (mirrors QueryRows::was_degraded).

Trait Implementations§

Source§

impl Clone for SearchRows

Source§

fn clone(&self) -> SearchRows

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SearchRows

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SearchRows

Source§

fn default() -> SearchRows

Returns the “default value” for a type. Read more
Source§

impl PartialEq for SearchRows

Source§

fn eq(&self, other: &SearchRows) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for SearchRows

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.