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 CorpusStatsThe 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: usizeHow 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> 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