tauri-plugin-indexer 0.1.1

a custom indexer (if the version is 1.0.0 then the plugin is ready)
Documentation
1
2
3
4
5
6
7
8
use unicode_segmentation::UnicodeSegmentation;

pub fn tokenize(content: &str) -> Vec<String> {
    content.unicode_words()
        .map(|w| w.trim_matches(|c: char| !c.is_alphanumeric()).to_lowercase())
        .filter(|w| !w.is_empty())
        .collect()
}