{"id":13440121,"url":"https://github.com/andylokandy/simsearch-rs","last_synced_at":"2025-04-04T07:05:44.622Z","repository":{"id":51607398,"uuid":"181518065","full_name":"andylokandy/simsearch-rs","owner":"andylokandy","description":"A simple and lightweight fuzzy search engine that works in memory, searching for similar strings (a pun here).","archived":false,"fork":false,"pushed_at":"2024-04-19T07:09:15.000Z","size":115,"stargazers_count":172,"open_issues_count":0,"forks_count":26,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T06:04:40.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andylokandy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-15T15:44:07.000Z","updated_at":"2025-02-03T02:41:34.000Z","dependencies_parsed_at":"2023-10-20T17:17:02.278Z","dependency_job_id":"c68fdb1a-02e0-43f4-bf73-955d678460e2","html_url":"https://github.com/andylokandy/simsearch-rs","commit_stats":{"total_commits":37,"total_committers":9,"mean_commits":4.111111111111111,"dds":0.4864864864864865,"last_synced_commit":"5cd70203673208682a5e22edaafc8aea348bda25"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylokandy%2Fsimsearch-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylokandy%2Fsimsearch-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylokandy%2Fsimsearch-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylokandy%2Fsimsearch-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andylokandy","download_url":"https://codeload.github.com/andylokandy/simsearch-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135142,"owners_count":20889420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:01:19.958Z","updated_at":"2025-04-04T07:05:44.582Z","avatar_url":"https://github.com/andylokandy.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries","库","Rust","Search"],"sub_categories":["Text search","文本搜索 Text search","文本搜索"],"readme":"# `simsearch`\n\n[![Build Status](https://travis-ci.com/andylokandy/simsearch-rs.svg?branch=master)](https://travis-ci.com/andylokandy/simsearch-rs)\n[![crates.io](https://img.shields.io/crates/v/simsearch.svg)](https://crates.io/crates/simsearch)\n[![docs.rs](https://docs.rs/simsearch/badge.svg)](https://docs.rs/simsearch)\n\nA simple and lightweight fuzzy search engine that works in memory, searching for similar strings (a pun here).\n\n### [**Documentation**](https://docs.rs/simsearch)\n\n## Usage\n\nAdd the following to your `Cargo.toml`:\n\n```toml\n[dependencies]\nsimsearch = \"0.2\"\n```\n\n## Example\n\n```rust\nuse simsearch::SimSearch;\n\nlet mut engine: SimSearch\u003cu32\u003e = SimSearch::new();\n\nengine.insert(1, \"Things Fall Apart\");\nengine.insert(2, \"The Old Man and the Sea\");\nengine.insert(3, \"James Joyce\");\n\nlet results: Vec\u003cu32\u003e = engine.search(\"thngs\");\n\nassert_eq!(results, \u0026[1]);\n```\n\nBy default, Jaro-Winkler distance is used. An alternative Levenshtein distance,\nwhich is SIMD-accelerated but only works for ASCII byte strings, can be specified\nwith custom `SearchOptions`:\n\n```rust\nuse simsearch::{SimSearch, SearchOptions};\n\nlet options = SearchOptions::new().levenshtein(true);\nlet mut engine: SimSearch\u003cu32\u003e = SimSearch::new_with(options);\n```\n\nAlso try the interactive demo by:\n\n```\n$ cargo run --release --example books\n```\n\n## Contribution\n\nAll kinds of contribution are welcomed.\n\n- **Issus.** Feel free to open an issue when you find typos, bugs, or have any question.\n- **Pull requests**. New collection, better implementation, more tests, more documents and typo fixes are all welcomed.\n\n## License\n\nLicensed under MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandylokandy%2Fsimsearch-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandylokandy%2Fsimsearch-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandylokandy%2Fsimsearch-rs/lists"}