ranked-searcher

Crates.ioranked-searcher
lib.rsranked-searcher
version0.1.5
created_at2025-10-16 18:24:34.128316+00
updated_at2025-11-22 18:13:02.393931+00
descriptionSearch inside text files using tf-idf formula, showing the most relevant search at the top
homepage
repositoryhttps://github.com/larscom/ranked-searcher
max_upload_size
id1886512
size44,452
Lars Kniep (larscom)

documentation

README

Ranked Searcher

Crates.io Version Crates.io Downloads (recent) Crates.io License

Search inside text files showing the most relevant search at the top, based on the well known tf-idf formula. It’s pretty fast, considering the fact it has to gather all the files first and then rank them accordingly.

✨ Features

  • Search inside all text based files
  • Most relevant search at the top
  • Highlights the terms that were searched for
  • Supports docx files
  • Respects .gitignore files

πŸš€ Installation

🍺 Homebrew

brew tap larscom/tap

brew install larscom/tap/ranked_searcher

πŸ“Ÿ Shell

curl -fsSL https://github.com/larscom/ranked-searcher/tree/main/scripts/install.sh | sh

πŸ“¦ Cargo

cargo install ranked-searcher

Or simply download the binary for your platform: https://github.com/larscom/ranked-searcher/releases

🎯 Usage

Search in current directory for files containing the terms hello world

$ ranked-searcher "hello world"

Or search inside a given directory (optional)

$ ranked-searcher "hello world" ./some/dir

Example output:

Example Output

Commit count: 0

cargo fmt