pub mod content;
pub mod path;
use std::ops::Range;
use uuid::Uuid;
pub use content::ContentSearcher;
pub use path::PathSearcher;
#[derive(Debug, Clone, Default)]
pub struct SearchResult {
pub id: Uuid,
pub filename: String,
pub parent_path: String,
pub path_indices: Vec<u32>,
pub path_matches: Vec<ContentMatch>,
pub content_matches: Vec<ContentMatch>,
}
#[derive(Debug, Clone)]
pub struct ContentMatch {
pub range: Range<usize>,
pub exact: bool,
}
use crate::Lb;
impl Lb {
pub async fn path_searcher(&self) -> PathSearcher {
PathSearcher::new(self).await
}
}