{"id":19000441,"url":"https://github.com/typesense/algolia-query-rules-to-typesense","last_synced_at":"2026-02-14T14:33:02.699Z","repository":{"id":216391404,"uuid":"741229152","full_name":"typesense/algolia-query-rules-to-typesense","owner":"typesense","description":"A CLI utility to import Algolia's query rules JSON into Typesense","archived":false,"fork":false,"pushed_at":"2024-07-09T18:59:58.000Z","size":155,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-07T22:39:37.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typesense.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-01-10T00:47:16.000Z","updated_at":"2025-07-22T19:01:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5605a50-33d7-4864-80fb-0006a7a31133","html_url":"https://github.com/typesense/algolia-query-rules-to-typesense","commit_stats":null,"previous_names":["typesense/algolia-query-rules-to-typesense"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/typesense/algolia-query-rules-to-typesense","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Falgolia-query-rules-to-typesense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Falgolia-query-rules-to-typesense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Falgolia-query-rules-to-typesense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Falgolia-query-rules-to-typesense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typesense","download_url":"https://codeload.github.com/typesense/algolia-query-rules-to-typesense/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Falgolia-query-rules-to-typesense/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29447268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2024-11-08T18:07:14.627Z","updated_at":"2026-02-14T14:33:02.682Z","avatar_url":"https://github.com/typesense.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ```algolia-query-rules-to-typesense```\n\nThis is a simple CLI utility to convert query rules from Algolia to Typesense's Override API JSON.\n\n## Usage:\n\n```bash\nnpx algolia-query-rules-to-typesense \u003cpath/to/algolia_rules_export.json\u003e \u003cpath/to/typesense_overrides_output.json\u003e\n```\n\nTo get `algolia_rules_export.json`, go to the \"Rules\" section of your Algolia index, and you'll find a download icon to export the rules as JSON.\n\nThis is the expected format of `algolia_rules_export.json`:\n\n```json\n[\n  {\n    \"description\": \"Test Rule\",\n    \"conditions\": [\n      {\n        \"anchoring\": \"is\",\n        \"pattern\": \"keyword\",\n        \"alternatives\": true\n      }\n    ],\n    \"consequence\": {\n      \"params\": {\n        \"filters\": \"...\"\n      },\n      \"filterPromotes\": true\n    },\n    \"enabled\": true,\n    \"objectID\": \"qr-1682441011\"\n  }\n]\n```\n\nAfter running this command, the output JSON will be in this format:\n\n```json\n[\n  {\n    \"id\": \"Test Rule - qr-1682441011\",\n    \"rule\": {\n      \"query\": \"keyword\",\n      \"match\": \"exact\"\n    },\n    \"filter_curated_hits\": true,\n    \"filter_by\": \"...\"\n  }\n]\n```\n\nYou can then import these JSON rules into Typesense using the [Typesense API](https://typesense.org/docs/0.25.2/api/curation.html#create-or-update-an-override).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesense%2Falgolia-query-rules-to-typesense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypesense%2Falgolia-query-rules-to-typesense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesense%2Falgolia-query-rules-to-typesense/lists"}