Skip to main content

Crate simsearch

Crate simsearch 

Source
Expand description

A small in-memory fuzzy search index for embedded autocomplete and search suggestions.

§Examples

use simsearch::Index;

let mut engine: Index<u32> = Index::new();

engine.insert(1, "Things Fall Apart");
engine.insert(2, "The Old Man and the Sea");
engine.insert(3, "James Joyce");

let results = engine.search("thngs");

assert_eq!(results[0].id, 1);

Structs§

Hit
A search result with its normalized relevance score.
Index
An in-memory fuzzy search index.
Options
Options for configuring the search index.