pub struct FullTextStore { /* private fields */ }Expand description
Manages FTS5 virtual tables per collection
Implementations§
Source§impl FullTextStore
impl FullTextStore
Sourcepub fn ensure_fts_table(&self, collection_name: &str) -> Result<()>
pub fn ensure_fts_table(&self, collection_name: &str) -> Result<()>
Ensure the FTS5 virtual table exists for a collection
Sourcepub fn index_text(
&self,
collection_name: &str,
vec_id: &str,
collection_id: &str,
text: &str,
) -> Result<()>
pub fn index_text( &self, collection_name: &str, vec_id: &str, collection_id: &str, text: &str, ) -> Result<()>
Index a text document for a given collection
Sourcepub fn search(
&self,
collection_name: &str,
query: &str,
top_k: usize,
) -> Result<Vec<FtsResult>>
pub fn search( &self, collection_name: &str, query: &str, top_k: usize, ) -> Result<Vec<FtsResult>>
Full-text search over a collection
Auto Trait Implementations§
impl Freeze for FullTextStore
impl RefUnwindSafe for FullTextStore
impl Send for FullTextStore
impl Sync for FullTextStore
impl Unpin for FullTextStore
impl UnsafeUnpin for FullTextStore
impl UnwindSafe for FullTextStore
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