{"id":17185886,"url":"https://github.com/duckyuck/rubberlike","last_synced_at":"2026-06-15T04:01:18.289Z","repository":{"id":23415470,"uuid":"26778004","full_name":"duckyuck/rubberlike","owner":"duckyuck","description":"A Clojure library for creating embedded Elasticsearch servers.","archived":false,"fork":false,"pushed_at":"2017-05-09T16:43:18.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-28T14:57:45.126Z","etag":null,"topics":["clojure","elasticsearch","embedded","inmemory","testing"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duckyuck.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":"2014-11-17T21:25:52.000Z","updated_at":"2020-10-14T09:28:53.000Z","dependencies_parsed_at":"2022-07-25T10:00:06.982Z","dependency_job_id":null,"html_url":"https://github.com/duckyuck/rubberlike","commit_stats":null,"previous_names":["andersfurseth/rubberlike"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/duckyuck/rubberlike","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyuck%2Frubberlike","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyuck%2Frubberlike/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyuck%2Frubberlike/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyuck%2Frubberlike/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duckyuck","download_url":"https://codeload.github.com/duckyuck/rubberlike/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyuck%2Frubberlike/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34346870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["clojure","elasticsearch","embedded","inmemory","testing"],"created_at":"2024-10-15T00:49:18.777Z","updated_at":"2026-06-15T04:01:18.232Z","avatar_url":"https://github.com/duckyuck.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rubberlike\n\nRubberlike is a [Clojure](http://clojure.org/) library for creating embedded [Elasticsearch](http://www.elasticsearch.org/) servers. Pretty useful for testing if I may say so myself.\n\nLatest version is `[rubberlike \"0.3.0\"]`.\n\nRubberlike requires Java \u003e= 1.7 and quite possibly Elasticsearch 2.x.\n\nElasticsearch is not included as a dependency in Rubberlike so you would have\nto pull it in yourself, e.g. `[org.elasticsearch/elasticsearch \"2.3.4\"]`.\n\n## Usage\n\nAll functions reside in the `rubberlike.core` namespace.\n\n`create` creates and starts an embedded Elasticsearch server instance. Invoking\n`create` with no arguments will create temporary directories for Elasticsearch\n(home and storage), as well as bind the server instance to a dynamically allocated port.\nThe temporary directories will be deleted upon calling `stop`.\n\nAlternatively, `create` can be invoked with a map of Elasticsearch configuration\nparameters (i.e. the same parameters you would put in your elasticsearch.yml).\nConfiguration parameter keys can be either keywords or strings.\n\n```clojure\n(create {:node.name \"Ruiner\"\n         \"network.host\" \"10.0.0.1\"}\n```\n\n`rubberlike` would be more than welcome to create and delete your supplied Elasticsearch data\nand home directories if you're so inclined. Just set `:rubberlike/temp-data-dir?` and/or\n`:rubberlike/temp-home-dir?` to true in the config. This is perfomed by default if you\ndo not provide `:path.data` or `:home.dir` when calling `create`.\n\n```clojure\n\u003e (create {:path.data \"/opt/rubberlike/data-dir\"\n           :path.home \"/opt/rubberlike/data-dir\"\n           :rubberlike/temp-data-dir? true\n           :rubberlike/temp-home-dir? true}\n```\n\nThe object returned from `create` is to be provided as the sole argument to the following functions provided by `rubberlike`.\n\n* `port` will give you the server port, which will come in handy if the port is not specified in the call to `create` and thus is dynamically allocated.\n* `client` will give you an instance of `org.elasticsearch.client.Client` for use with Elasticsearch's native API.\n* `stop` stops the server. It will also delete data and home directories if you either didn't supply them yourself,\nor have the appropriate configuration parameters set (see above).\n\n## Contributions\n\n* [Magnus Rundberget](https://github.com/rundis) for initial port to Elasticsearch 2.x\n\nMuch obliged!\n\n## License\n\nCopyright © 2014-2017 Anders Furseth\n\nDistributed under the Eclipse Public License either version 1.0 or (at your option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckyuck%2Frubberlike","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduckyuck%2Frubberlike","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckyuck%2Frubberlike/lists"}