{"id":21994373,"url":"https://github.com/codelibs/fesen-httpclient","last_synced_at":"2025-04-30T16:48:02.481Z","repository":{"id":43838419,"uuid":"332096448","full_name":"codelibs/fesen-httpclient","owner":"codelibs","description":"HTTP Rest Client for Elasticsearch and OpenSearch","archived":false,"fork":false,"pushed_at":"2025-03-30T13:09:36.000Z","size":493,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T14:22:23.593Z","etag":null,"topics":["elasticsearch","java","opensearch"],"latest_commit_sha":null,"homepage":"","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/codelibs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-23T00:42:35.000Z","updated_at":"2025-03-30T13:09:40.000Z","dependencies_parsed_at":"2024-02-06T14:46:35.871Z","dependency_job_id":"229246fd-58ef-4a2d-adac-632c7aed0e66","html_url":"https://github.com/codelibs/fesen-httpclient","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Ffesen-httpclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Ffesen-httpclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Ffesen-httpclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Ffesen-httpclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelibs","download_url":"https://codeload.github.com/codelibs/fesen-httpclient/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251747942,"owners_count":21637408,"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":["elasticsearch","java","opensearch"],"created_at":"2024-11-29T21:08:40.064Z","updated_at":"2025-04-30T16:48:02.457Z","avatar_url":"https://github.com/codelibs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fesen HttpClient\n[![Java CI with Maven](https://github.com/codelibs/fesen-httpclient/actions/workflows/maven.yml/badge.svg)](https://github.com/codelibs/fesen-httpclient/actions/workflows/maven.yml)\n====================\n\nFesen HttpClient is HTTP Rest Client for Elasticsearch/OpenSearch.\nHttpClient provided by fesen-httpclient is HTTP-based implementation for org.opensearch.client.Client.\nThis HttpClient supports Elasticsearch 7.x, 8.x and OpenSearch 1.x, 2.x.\n\nUsage\n=====\n\n## For Maven\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.codelibs.fesen.client\u003c/groupId\u003e\n    \u003cartifactId\u003efesen-httpclient\u003c/artifactId\u003e\n    \u003cversion\u003e2.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Example Code\n\n```\n// create client\nfinal String host = \"http://localhost:9200\";\nfinal Settings settings = Settings.builder().putList(\"http.hosts\", host).put(\"http.compression\", true).build();\nfinal HttpClient client = new HttpClient(settings, null);\n\n// search\nclient.prepareSearch(\"testindex\").setQuery(QueryBuilders.matchAllQuery()).execute(wrap(res -\u003e {\n  final long totalHits = res.getHits().getTotalHits().value;\n  // ...\n}, e -\u003e {\n  // ...\n}));\n```\n\nFor the more details, see test code in [src/test/java](https://github.com/codelibs/fesen-httpclient/tree/main/src/test/java/org/codelibs/fesen/client).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Ffesen-httpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelibs%2Ffesen-httpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Ffesen-httpclient/lists"}