pub struct BrainIndex { /* private fields */ }Implementations§
Source§impl BrainIndex
impl BrainIndex
pub fn open(brain_path: impl AsRef<Path>) -> Result<Self>
Sourcepub fn rebuild(&self) -> Result<usize>
pub fn rebuild(&self) -> Result<usize>
Walk the brain directory, parse markdown files, and repopulate the index. Returns the number of files indexed.
Sourcepub fn query(
&self,
text: &str,
filters: QueryFilters,
) -> Result<Vec<BrainEntry>>
pub fn query( &self, text: &str, filters: QueryFilters, ) -> Result<Vec<BrainEntry>>
Full-text search with optional filters.
Auto Trait Implementations§
impl !Freeze for BrainIndex
impl RefUnwindSafe for BrainIndex
impl Send for BrainIndex
impl Sync for BrainIndex
impl Unpin for BrainIndex
impl UnsafeUnpin for BrainIndex
impl UnwindSafe for BrainIndex
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