pub struct QueryEngine { /* private fields */ }Expand description
Query engine for search operations
Implementations§
Source§impl QueryEngine
impl QueryEngine
pub fn new(index: SearchIndex) -> Self
pub fn top_k(&self, query: &SparseVec, k: usize) -> Vec<QueryResult>
Auto Trait Implementations§
impl Freeze for QueryEngine
impl RefUnwindSafe for QueryEngine
impl Send for QueryEngine
impl Sync for QueryEngine
impl Unpin for QueryEngine
impl UnwindSafe for QueryEngine
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