A local search engine use TF-IDF algorithm in Rust!
the searching materials are from https://github.com/BSVino/docs.gl
It contains:
- a
Lexerfor word segmentation usexml-rsand modelfor calculating TF-IDF.- a web interface for searching use
tiny_httpwith input and results dispaying and a/api/searchAPI.
And it's a CLI app hand-made without clap and with subcommands:
- index - Indexing tf-idf into json file.
- serve - Start a local server with web interface for searching.
1 git clone this repo
2 cargo run index
3 cargo run serve