inverta

Crates.ioinverta
lib.rsinverta
version0.1.0
created_at2026-01-16 12:09:38.548858+00
updated_at2026-01-16 12:09:38.548858+00
descriptionA basic search engine that downloads pages and matches your search query against their contents.
homepage
repositoryhttps://github.com/pratham-srivastava-07/inverta
max_upload_size
id2048513
size69,014
Pratham Srivastava (pratham-srivastava-07)

documentation

README

Inverta

Inverta is a basic search engine written in Rust. It allows you to crawl websites, index their content using TF-IDF, and perform search queries against the indexed data.

Features

  • Web Crawler: Downloads pages starting from a seed URL.
  • Indexer: Builds an inverted index with TF-IDF scoring.
  • Search: Query the index to find relevant pages.

Installation

Ensure you have Rust and Cargo installed.

git clone https://github.com/pratham-srivastava-07/Inverta.git
cd Inverta
cargo build --release

Usage

Run the application using Cargo:

cargo run
  1. Enter a valid URL when prompted (e.g., https://example.com).
  2. The crawler will fetch pages (up to a limit).
  3. Enters a search loop:
    • Type a query to search the indexed pages.
    • Type exit to quit.

Dependencies

  • reqwest: HTTP client for crawling.
  • select: HTML parsing.
  • url: URL parsing and normalization.
  • regex: Tokenization.
  • lazy_static: Static initialization.

License

MIT

Commit count: 0

cargo fmt