{"id":15372962,"url":"https://github.com/rs/rest-layer-es","last_synced_at":"2025-06-19T06:34:31.916Z","repository":{"id":66040909,"uuid":"52429482","full_name":"rs/rest-layer-es","owner":"rs","description":"REST Layer ElasticSearch resource storage handler","archived":false,"fork":false,"pushed_at":"2018-11-27T14:15:09.000Z","size":23,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T14:13:30.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rs.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}},"created_at":"2016-02-24T09:16:56.000Z","updated_at":"2024-09-23T11:00:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"310f388f-7e45-4888-a006-40255e811e45","html_url":"https://github.com/rs/rest-layer-es","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.5,"last_synced_commit":"461b498f976b7b2527d0c26c893447ba67e916d3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rs/rest-layer-es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Frest-layer-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Frest-layer-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Frest-layer-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Frest-layer-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rs","download_url":"https://codeload.github.com/rs/rest-layer-es/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Frest-layer-es/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260702782,"owners_count":23049332,"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-10-01T13:53:50.657Z","updated_at":"2025-06-19T06:34:26.902Z","avatar_url":"https://github.com/rs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST Layer ElasticSearch Backend\n\n[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/rs/rest-layer-es) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/rs/rest-layer-es/master/LICENSE) [![build](https://img.shields.io/travis/rs/rest-layer-es.svg?style=flat)](https://travis-ci.org/rs/rest-layer-es)\n\nThis [REST Layer](https://github.com/rs/rest-layer) resource storage backend stores data in an ElasticSearch cluster using [olivere/elastic](http://gopkg.in/olivere/elastic.v3).\n\nElasticSearch v5+ is required.\n\n## Usage\n\n```go\nimport \"github.com/rs/rest-layer-es\"\n```\n\nCreate an [elastic](\"http://gopkg.in/olivere/elastic.v5\") client:\n\n```go\nclient, err := elastic.NewClient()\n```\n\nCreate a resource storage handler with a given DB/collection:\n\n```go\ns := es.NewHandler(client, \"index\", \"type\")\n```\n\nUse this handler with a resource:\n\n```go\nindex.Bind(\"foo\", foo, s, resource.DefaultConf)\n```\n\nYou may want to create as many ElasticSearch handlers with different index and/or type. You can share the same `elastic` client across all you handlers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frs%2Frest-layer-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frs%2Frest-layer-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frs%2Frest-layer-es/lists"}