{"id":22783124,"url":"https://github.com/frontmage/sonic_client","last_synced_at":"2025-07-21T17:32:44.567Z","repository":{"id":81860464,"uuid":"180311794","full_name":"FrontMage/sonic_client","owner":"FrontMage","description":"sonic fulltext search client","archived":false,"fork":false,"pushed_at":"2020-03-26T10:26:36.000Z","size":22,"stargazers_count":34,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T18:37:05.061Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FrontMage.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":"2019-04-09T07:38:31.000Z","updated_at":"2024-11-01T11:29:30.000Z","dependencies_parsed_at":"2023-04-23T10:08:16.094Z","dependency_job_id":null,"html_url":"https://github.com/FrontMage/sonic_client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FrontMage/sonic_client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fsonic_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fsonic_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fsonic_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fsonic_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrontMage","download_url":"https://codeload.github.com/FrontMage/sonic_client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrontMage%2Fsonic_client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266342809,"owners_count":23914262,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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-12-11T22:07:06.546Z","updated_at":"2025-07-21T17:32:44.558Z","avatar_url":"https://github.com/FrontMage.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sonic_client\n\nRust client for [sonic](https://github.com/valeriansaliou/sonic), a Rust based search platform.\n\n# Note!\n\nThis lib is under development, apis could change very fast.\n\n## Usage\n\n```toml\nsonic_client = \"0.1.1\"\n```\n\n```rust\nuse sonic_client::SearchChan;\n\nlet mut s = SearchChan::new(\"127.0.0.1\", 1491, \"haha\").expect(\"Connection error\");\nlet handle = s.read();\nassert_eq!(\"CONNECTED \u003csonic-server v1.1.8\u003e\\r\\n\", s.connect().unwrap());\nthread::sleep(time::Duration::from_secs(4));\nlet r1 = s\n    .query(\"helpdesk\", \"user:0dcde3a6\", \"gdpr\", Some(50), None)\n    .unwrap();\nlet r2 = s.ping().unwrap();\nlet r3 = s.quit().unwrap();\nassert_eq!(\"EVENT\", r1[0]);\nassert_eq!(\"PONG\\r\\n\", r2.recv().unwrap());\nassert_eq!(\"ENDED quit\\r\\n\", r3.recv().unwrap());\nhandle.join().expect(\"Failed to wait process\");\n```\n\n## Roadmap\n\n- Respect buffer 20000 limit\n- Better error parsing\n- pooling\n- better debug mode message\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontmage%2Fsonic_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrontmage%2Fsonic_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontmage%2Fsonic_client/lists"}