pub struct QueryBuilder<'a, K> {
pub token_dim_rev_index: &'a IndexMap<Box<str>, Vec<KeyRc<K>>>,
pub documents: &'a IndexSet<KeyRc<K>>,
pub scan_doc_indices: Vec<usize>,
}Fields§
§token_dim_rev_index: &'a IndexMap<Box<str>, Vec<KeyRc<K>>>§documents: &'a IndexSet<KeyRc<K>>§scan_doc_indices: Vec<usize>Implementations§
Source§impl<'a, K> QueryBuilder<'a, K>
impl<'a, K> QueryBuilder<'a, K>
pub fn new( token_dim_rev_index: &'a IndexMap<Box<str>, Vec<KeyRc<K>>>, documents: &'a IndexSet<KeyRc<K>>, ) -> Self
pub fn token(&self, token: &str) -> OrderDocIdx
pub fn not(&self, order: OrderDocIdx) -> OrderDocIdx
pub fn and(&self, left: OrderDocIdx, right: OrderDocIdx) -> OrderDocIdx
pub fn or(&self, left: OrderDocIdx, right: OrderDocIdx) -> OrderDocIdx
pub fn build<F>(self, order: F) -> Query
pub fn build_with_freq<F>(self, order: F, freq: TokenFrequency) -> Query
pub fn build_with_order(self, order: OrderDocIdx) -> Query
pub fn build_with_order_and_freq( self, order: OrderDocIdx, freq: TokenFrequency, ) -> Query
Auto Trait Implementations§
impl<'a, K> Freeze for QueryBuilder<'a, K>
impl<'a, K> RefUnwindSafe for QueryBuilder<'a, K>where
K: RefUnwindSafe,
impl<'a, K> !Send for QueryBuilder<'a, K>
impl<'a, K> !Sync for QueryBuilder<'a, K>
impl<'a, K> Unpin for QueryBuilder<'a, K>
impl<'a, K> UnwindSafe for QueryBuilder<'a, K>where
K: RefUnwindSafe,
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