Skip to main content

ColdPageQuery

Struct ColdPageQuery 

Source
pub struct ColdPageQuery<'a> {
    pub bare: Vec<Vec<u8>>,
    pub phrases: Vec<Vec<Vec<u8>>>,
    pub stats: &'a CorpusStats,
    pub filter: &'a [Filter<'a>],
    pub sort: Option<&'a Sort<'a>>,
    pub distinct: Option<&'a Distinct<'a>>,
    pub facets: &'a [Facet<'a>],
    pub fetch: usize,
}
Expand description

Everything pass 2 asks of the cold directory.

Fields§

§bare: Vec<Vec<u8>>

Bare terms, sorted and deduplicated (the hot engine’s rule).

§phrases: Vec<Vec<Vec<u8>>>

Each phrase’s token sequence.

§stats: &'a CorpusStats

The injected global statistics both passes score with.

§filter: &'a [Filter<'a>]

FILTER predicates, ANDed, over the frozen stored values.

§sort: Option<&'a Sort<'a>>

SORT: the page order is the sort key’s, not the score’s.

§distinct: Option<&'a Distinct<'a>>

DISTINCT: collapse to the best hit per value identity.

§facets: &'a [Facet<'a>]

FACET fields to count over the (filtered) match set.

§fetch: usize

How deep a page the merge needs (LIMIT + OFFSET).

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for ColdPageQuery<'a>

§

impl<'a> !Send for ColdPageQuery<'a>

§

impl<'a> !Sync for ColdPageQuery<'a>

§

impl<'a> !UnwindSafe for ColdPageQuery<'a>

§

impl<'a> Freeze for ColdPageQuery<'a>

§

impl<'a> Unpin for ColdPageQuery<'a>

§

impl<'a> UnsafeUnpin for ColdPageQuery<'a>

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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.