{"id":32287451,"url":"https://github.com/sjhorn/lunr","last_synced_at":"2026-02-24T14:32:14.690Z","repository":{"id":106030653,"uuid":"609472642","full_name":"sjhorn/lunr","owner":"sjhorn","description":"A bit like Solr, but much smaller and not as bright in dart","archived":false,"fork":false,"pushed_at":"2024-12-08T08:05:25.000Z","size":1175,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-23T02:11:50.102Z","etag":null,"topics":["dart","flutter","full","indexing","lunrjs","search","text"],"latest_commit_sha":null,"homepage":"https://lunr.hornmicro.com","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjhorn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2023-03-04T09:26:24.000Z","updated_at":"2025-06-17T12:20:23.000Z","dependencies_parsed_at":"2024-12-08T09:17:10.344Z","dependency_job_id":"1eb9f2c0-3985-48ea-bd95-17efb1c105d1","html_url":"https://github.com/sjhorn/lunr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sjhorn/lunr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjhorn%2Flunr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjhorn%2Flunr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjhorn%2Flunr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjhorn%2Flunr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjhorn","download_url":"https://codeload.github.com/sjhorn/lunr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjhorn%2Flunr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29785440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dart","flutter","full","indexing","lunrjs","search","text"],"created_at":"2025-10-23T02:05:24.924Z","updated_at":"2026-02-24T14:32:14.685Z","avatar_url":"https://github.com/sjhorn.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lunr \n\n\nA bit like Solr, but much smaller and not as bright (based on [lunrjs](https://github.com/olivernn/lunr.js))\n\n## Example\n\nA very simple search index can be created using the following:\n\n```dart\nvar idx = lunr((builder) {\n  builder.field('title');\n  builder.field('body');\n\n  builder.add({\n    \"title\": \"Twelfth-Night\",\n    \"body\": \"If music be the food of love, play on: Give me excess of it…\",\n    \"author\": \"William Shakespeare\",\n    \"id\": \"1\"\n  });\n});\n```\n\nThen searching is as simple as:\n\n```dart\nidx.search(\"love\");\n```\n\nThis returns a list of matching documents with a score of how closely they match the search query as well as any associated metadata about the match:\n\n```javascript\n[\n  {\n    \"ref\": \"1\",\n    \"score\": 0.3535533905932737,\n    \"matchData\": {\n      \"metadata\": {\n        \"love\": {\n          \"body\": {}\n        }\n      }\n    }\n  }\n]\n```\n\n\n## Description\n\nLunr is a small, full-text search library for use in the browser.  It indexes JSON documents and provides a simple search interface for retrieving documents that best match text queries.\n\n## Why\n\nFor web applications with all their data already sitting in the client, it makes sense to be able to search that data on the client too.  It saves adding extra, compacted services on the server.  A local search index will be quicker, there is no network overhead, and will remain available and usable even without a network connection.\n\n## Installation\n\nSimply add the lunr package to your code.\n\nWith Dart:\n\n```sh\ndart pub add lunr\n```\n\nWith Flutter:\n\n```sh\nflutter pub add lunr\n```\n\n\n## Features\n\n* Full text search support (14 languages support from lunrjs coming soon).\n* Boost terms at query time or boost entire documents at index time\n* Scope searches to specific fields\n* Fuzzy term matching with wildcards or edit distance\n\n## Demo\n\n[Try out the demo](https://lunr_demo.hornmicro.com)\n\nand see the [Associated Source code](https://github.com/sjhorn/lunr_demo)\n\n## Contributing\n\nSee the [`CONTRIBUTING.md` file](CONTRIBUTING.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjhorn%2Flunr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjhorn%2Flunr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjhorn%2Flunr/lists"}