{"id":15671616,"url":"https://github.com/beace/eggjs-elasticsearch","last_synced_at":"2025-05-06T20:27:37.940Z","repository":{"id":176077460,"uuid":"654884442","full_name":"Beace/eggjs-elasticsearch","owner":"Beace","description":"eggjs elasticsearch plugin ","archived":false,"fork":false,"pushed_at":"2023-11-07T11:43:49.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T02:41:10.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Beace.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":"2023-06-17T08:22:59.000Z","updated_at":"2023-09-04T10:58:58.000Z","dependencies_parsed_at":"2024-10-23T10:32:08.681Z","dependency_job_id":"bb084e84-8f6c-4efe-a174-833179a90a18","html_url":"https://github.com/Beace/eggjs-elasticsearch","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":"0.10526315789473684","last_synced_commit":"df9cb095424644471a45fc8c31a8c9c0ad9d5f09"},"previous_names":["beace/eggjs-elasticsearch"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beace%2Feggjs-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beace%2Feggjs-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beace%2Feggjs-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beace%2Feggjs-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beace","download_url":"https://codeload.github.com/Beace/eggjs-elasticsearch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252763461,"owners_count":21800498,"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-03T15:04:14.897Z","updated_at":"2025-05-06T20:27:37.920Z","avatar_url":"https://github.com/Beace.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eggjs-elasticsearch\n\n\u003ca href=\"https://codecov.io/gh/BeAce/eggjs-elasticsearch\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/Beace/eggjs-elasticsearch?token=zWoIP2u0XD\u0026logoColor=18181B\u0026color=28CF8D\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/eggjs-elasticsearch\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/eggjs-elasticsearch.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\" alt=\"Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/eggjs-elasticsearch\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/eggjs-elasticsearch.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\" alt=\"Downloads\"\u003e\u003c/a\u003e\n\n\neggjs elasticsearch plugin use elasticsearch@8\n\n##  install\n\n```\nnpm install eggjs-elasticsearch\n```\n\n## eggjs plugin config\n\n`plugin.js`\n\n\n```js\n{\n  elasticsearch: {\n    enable: true,\n    package: \"eggjs-elasticsearch\"\n  }\n}\n```\n\n## plugin config\n\n`config.default.ts` single client\n\n\n```js\n{\n elasticsearch: {\n  client: {\n    node: \"http://localhost:9200\"\n  }\n }\n}\n\n```\n\n`config.default.ts` multi clients\n\n```js\n{\n elasticsearch: {\n  clients: {\n    foo: {\n      node: \"http://localhost:9200\"\n    },\n    bar: {\n      node: \"http://localhost:9201\"\n    }\n  }\n }\n}\n\n```\n\nmore options see  [@elastic/elasticsearch](https://npmjs.org/@elastic/elasticsearch)\n\n## learn how to use elasticsearch client\n\nhttps://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeace%2Feggjs-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeace%2Feggjs-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeace%2Feggjs-elasticsearch/lists"}