{"id":20856307,"url":"https://github.com/hide-in-code/colume-search","last_synced_at":"2026-04-14T23:33:26.682Z","repository":{"id":45341404,"uuid":"440014875","full_name":"hide-in-code/colume-search","owner":"hide-in-code","description":"一个golang实现的倒排索引","archived":false,"fork":false,"pushed_at":"2021-12-20T03:39:54.000Z","size":1721,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T00:14:13.535Z","etag":null,"topics":["elasticsearch","es","gin","golang","inverted-index"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hide-in-code.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}},"created_at":"2021-12-20T01:59:43.000Z","updated_at":"2025-10-04T17:42:03.000Z","dependencies_parsed_at":"2022-09-12T13:22:24.967Z","dependency_job_id":null,"html_url":"https://github.com/hide-in-code/colume-search","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hide-in-code/colume-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hide-in-code%2Fcolume-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hide-in-code%2Fcolume-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hide-in-code%2Fcolume-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hide-in-code%2Fcolume-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hide-in-code","download_url":"https://codeload.github.com/hide-in-code/colume-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hide-in-code%2Fcolume-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31819790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"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":["elasticsearch","es","gin","golang","inverted-index"],"created_at":"2024-11-18T04:30:04.216Z","updated_at":"2026-04-14T23:33:26.653Z","avatar_url":"https://github.com/hide-in-code.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colume-search\n一个纯go编写的mini型倒排索引工具。项目名暂时这样叫，后面心血来潮了会改。\n## 基本思想\n本项目单纯是为了解决检索某个数据而提供的一种解决办法，自身并不承担类似mysql或者其他DB一样存储关系型数据的功能，仅仅是提供了一种能够高效检索数据的办法。本项目认为，任何具备检索逻辑的数据在结构上都具备以下的特性：\n\t\n\t{\n\t    \"key\":1,  //某种关系型数据的数据主键\n\t    \"data\":{\n\t        \"attr1\":\"value1\",  //该条记录所有需要检索的index和value\n\t        \"attr2\":\"value2\",\n\t        \"attr3\":\"value3\",\n\t        \"attr4\":\"value4\",\n\t        \"attr5\":\"value5\",\n\t    }\n\t}\n\t\n检索到数据之后，自行再结合其他DB查询出对应的数据(后续有精力了再考虑搞这个)，项目提供了web服务，如果不想使用web服务您也可以自行修改代码，作为内嵌的检索引擎使用。\n\n\n# 编译\n\n    git clone https://github.com/hide-in-code/colume-search.git\n\n    cd colume-search\n\n    go build -o colume-search main.go\n\n# 使用\n\n    ./colume-search\n执行之后程序会启动一个web服务，服务监听本地`5200`端口，可以通过web协议进行数据的添加，查询和修改，接口规范符合`restful`风格API\n\n\n### 新增数据\n\tPOST 127.0.0.1:5200/{{table}}  //暂时叫table，没有想到好的名字\n\t\n\tinputdata\n\t{\n\t    \"key\":2,   //查询结果关联的主键key\n\t    \"data\":{\n\t        \"attr1\":\"value11\",  //每一个记录的index和value，倒排之后可以根据的index和value 查询出 对应记录的 key\n\t        \"attr2\":\"value22\",\n\t        \"attr3\":\"value33\",\n\t        \"attr4\":\"value44\",\n\t        \"attr5\":\"value55\",\n\t    }\n\t}\n\n### 根据index和value检索某一条数据(key)\n\tGET 127.0.0.1:5200/{{table}}?index=index1\u0026value=value1\n\n### 检索所有唯一index\n\tGET 127.0.0.1:5200/{{table}}/allindex\n\t\n### 检索所有index值对应的数量\n\tGET 127.0.0.1:5200/{{table}}/allindexcount\n\n### 项目依赖\n- [gin框架](https://github.com/gin-gonic/gin)(也可以不使用web服务，单纯作为内嵌的检索库)\n\n### TODO\n- 数据修改\n\n# 协议\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhide-in-code%2Fcolume-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhide-in-code%2Fcolume-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhide-in-code%2Fcolume-search/lists"}