web-simhash-rs
a small, dependency-free Rust library for web-page near-duplicate detection. It follows the public Google WWW 2007 SimHash paper as closely as practical: weighted document features, 64-bit fingerprints, Hamming distance comparison, and a multi-table index for finding fingerprints within a small bit distance.
Install
Example
use ;
let extractor = default;
let a = from_html;
let b = from_html;
let mut index = new_google64_k3;
index.insert;
let matches = index.query;