{"id":18939311,"url":"https://github.com/gentics/elasticsearch-java-client","last_synced_at":"2025-04-15T19:30:47.355Z","repository":{"id":28577208,"uuid":"118771369","full_name":"gentics/elasticsearch-java-client","owner":"gentics","description":"Minimalistic Elasticsearch Java Client based on OkHttp","archived":false,"fork":false,"pushed_at":"2024-12-06T14:25:57.000Z","size":106,"stargazers_count":5,"open_issues_count":6,"forks_count":4,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-29T01:13:07.335Z","etag":null,"topics":["async-client","elasticsearch","elasticsearch-client","rest-client"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gentics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-01-24T13:48:11.000Z","updated_at":"2024-09-24T06:36:16.000Z","dependencies_parsed_at":"2024-12-06T15:38:08.232Z","dependency_job_id":null,"html_url":"https://github.com/gentics/elasticsearch-java-client","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Felasticsearch-java-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Felasticsearch-java-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Felasticsearch-java-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Felasticsearch-java-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gentics","download_url":"https://codeload.github.com/gentics/elasticsearch-java-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249138610,"owners_count":21218915,"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":["async-client","elasticsearch","elasticsearch-client","rest-client"],"created_at":"2024-11-08T12:17:07.668Z","updated_at":"2025-04-15T19:30:46.948Z","avatar_url":"https://github.com/gentics.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimalistic Elasticsearch Java Client\n\nThe aim of this project is to provide an alternative Java REST client for elasticsearch.\n\nThis client is model agnostic and thus does not provide any models. Use the [high level REST client](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high.html) if you need those models.\n\nThe client is also JSON parser agnostic. You can configure your own JSON parser via the `Client#setConverterFunction` method.\n\n## Async API via RxJava 2\n\n```java\nClient\u003cJsonObject\u003e client = new Client\u003c\u003e(\"http\", \"localhost\", 9200);\nclient.setConverterFunction(JsonObject::new);\n\nJsonObject doc = client.createIndex(\"dummy\", new JsonObject()).async().toCompletable()\n        .andThen(client.storeDocument(\"blub\", \"default\", \"one\", new JsonObject().put(\"key1\", \"value1\"))).async().toCompletable()\n        .andThen(client.readDocument(\"blub\", \"default\", \"one\").async()).blockingGet();\n\nassertEquals(\"value1\", doc.getJsonObject(\"_source\").getString(\"key1\"));\n```\n\n## Blocking API\n\n```java\nClient\u003cJsonObject\u003e client = new Client\u003c\u003e(\"http\", \"localhost\", 9200);\nclient.setConverterFunction(JsonObject::new);\n\nclient.createIndex(\"dummy\", new JsonObject()).sync();\nclient.storeDocument(\"blub\", \"default\", \"one\", new JsonObject().put(\"key1\", \"value1\")).sync();\n\nJsonObject doc = client.readDocument(\"blub\", \"default\", \"one\").sync();\nassertEquals(\"value1\", doc.getJsonObject(\"_source\").getString(\"key1\"));\n```\n\n## TODOs\n\n* Add Scroll API support \n* Support for multiple ES instances\n* More tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgentics%2Felasticsearch-java-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgentics%2Felasticsearch-java-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgentics%2Felasticsearch-java-client/lists"}