pub struct Fts5TextSearch { /* private fields */ }Expand description
A TextSearch backed by SQLite FTS5 virtual tables.
Each instance manages one table: fts_{table_key}. Documents are stored
with their metadata in UNINDEXED columns; only title and body are
full-text indexed.
Trait Implementations§
Source§impl TextSearch for Fts5TextSearch
impl TextSearch for Fts5TextSearch
fn upsert_document<'life0, 'async_trait>(
&'life0 self,
document: TextDocument,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upsert_documents<'life0, 'async_trait>(
&'life0 self,
documents: Vec<TextDocument>,
) -> Pin<Box<dyn Future<Output = Result<BatchWriteSummary, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_document<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: &'life1 str,
subject_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_document<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: &'life1 str,
subject_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<TextDocument>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'async_trait>(
&'life0 self,
request: TextSearchRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<TextSearchHit>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count<'life0, 'async_trait>(
&'life0 self,
filter: TextFilter,
) -> Pin<Box<dyn Future<Output = Result<u64, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<TextIndexStats, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rebuild<'life0, 'async_trait>(
&'life0 self,
_scope: IndexRebuildScope,
) -> Pin<Box<dyn Future<Output = Result<TextIndexStats, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for Fts5TextSearch
impl !RefUnwindSafe for Fts5TextSearch
impl Send for Fts5TextSearch
impl Sync for Fts5TextSearch
impl Unpin for Fts5TextSearch
impl UnsafeUnpin for Fts5TextSearch
impl !UnwindSafe for Fts5TextSearch
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