{"_id":"@ecom-co/elasticsearch","_rev":"16-aeb0010b00ebf4fa4760c7b13f5390c0","name":"@ecom-co/elasticsearch","dist-tags":{"latest":"0.1.15"},"versions":{"0.1.0":{"name":"@ecom-co/elasticsearch","version":"0.1.0","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.0","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"cd4b9293331ac51acf518cad340685a90c96a0eb","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.0.tgz","fileCount":26,"integrity":"sha512-GbDRvfPLayAZu4xzFChqC7xlxvCxwh+WHQUeHT/dAeTa3RapJAubs94zPn70SaO7lmAfrYd4D6DOebZnG3Mw/A==","signatures":[{"sig":"MEUCIQDlF0kQ46l/1QOEZfyuMsMvsnRTm87Wvfz3U8cN2osd1AIgI0vaWxNIdFQkZbI8agzWsRR41X2p1SerdHMofL9OvJQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20134},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c0554be7056b9de4a8f69ed4fbea20ad75cf48e6","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.0_1754896813788_0.9284149161187414","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@ecom-co/elasticsearch","version":"0.1.2","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.2","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"e0f689a51de596bce73029916772856a693624e0","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.2.tgz","fileCount":29,"integrity":"sha512-y4Zk5w0GZkC1nHpN+r04d1m1ndwIVxLsQvueLOwB0/P2imoKPGpk+HXkDc2vZeZwGQdXxceGgfgV8ai5Kbz+Fw==","signatures":[{"sig":"MEUCIBYwj7Oi5VRtgcHhoMxewaQukpbUB26QNZJrqvaQU4BbAiEAgNBdyOW0OUOERJcj5stpfHu6ZalER29zPYFKbhLQtm0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58465},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"1cf50007f86ca9debddba62745c59522219b3e4d","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.2_1754905677618_0.1372869621567716","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@ecom-co/elasticsearch","version":"0.1.3","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.3","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"8a1a00e11b1a3842520ddcfa08f9a3e068eef075","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.3.tgz","fileCount":29,"integrity":"sha512-Ir+knsxxkdk3p/VmilLGPvOpBQw9V5AhuZcLkR208PVB8XpCCf3MK0B3cx1PzMn/U522Fl0wTxVLozQGn6MwMg==","signatures":[{"sig":"MEUCIFFHgmTg4E93mli8nHIDZhTmS9whhjD/XgzQQB96MH9PAiEA8+6co41gmVKlz5FP3iVT8xR4gGZNMPnB1k7GOLNh+QI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58481},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ba4cda9cbf26f133507aa5461913705d210763d2","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.3_1754906696245_0.9288181194791063","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@ecom-co/elasticsearch","version":"0.1.4","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.4","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"3aee21bd4679356c540ce770da1942877257aa3a","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.4.tgz","fileCount":29,"integrity":"sha512-FOPUL7fXlBRv2CsGPNx4IPY/7bQOzYmwuTrWmEUwIamR83V+/7Ea+NUk7MaoauQkENPKa2jacu9Fckz6qOW/IA==","signatures":[{"sig":"MEYCIQC1we4mm4P+WXaPqEx63wG9zKKym5M0s8DN2w4Uzlj8NwIhAJjFurEJf5duIMNfmyKEeqIfOawA7YwbPFOeCjIcuY4X","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60516},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8a7bbb220b7f465af804ca6723ad408475c4ba6f","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.4_1754926711986_0.19558198519180436","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@ecom-co/elasticsearch","version":"0.1.5","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.5","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"0412a05a5ce52c4d7cf5c80605fae1e7aef7a7e5","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.5.tgz","fileCount":29,"integrity":"sha512-B21gPi/o+7qj7NggO2KZ5/KlYHhMUairKO9efsEXCjB1bb4+gukn28hHA7HO1jV81O2/ho4j0/QU9djbqIe/qg==","signatures":[{"sig":"MEUCIQDS5eRCDCU6vuju/hFotGvmKA9Uv6nEXkYY4T3drTQIAAIgC4c2wV3LJwcR6zZeZ/lJwJVE44no436vsCOvq+jvTok=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60459},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"b2360d31d2719d85f4a09484d4ce56a8ce0483df","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.5_1754927090904_0.6478656789234913","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@ecom-co/elasticsearch","version":"0.1.6","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.6","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"4f2bfcad1b9a81ecf66e515de997ad3703fcd360","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.6.tgz","fileCount":32,"integrity":"sha512-6DbAARdmYfglFUcTHi4gi7lx0fIejyt4mqz6fVTgBLkt8jSMCbtl2g4VgAWrGv5+yYjfs6+jzVECj+vueDQQcQ==","signatures":[{"sig":"MEQCIB86QW5IEwocVAWSrzRT8RrEUuYzh0mxWjSwEAHvdB2iAiBMnVQPiFruWmQSXF2yKmBrHi1Vuo3dQFPrTlGvOryu3Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63206},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"41b4bec41724db4b7e9be945d17817354117178d","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.6_1754929713610_0.43164025977932896","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@ecom-co/elasticsearch","version":"0.1.7","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.7","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"56f8d472b4066d44f72e97e5650f6dc8400fc403","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.7.tgz","fileCount":32,"integrity":"sha512-IknUeGYiszFsmQnn/Pttzb3nGt2w2KFCLtLZmI1y+1yIA945ouHHOpyZP0wsGbWHq9j5YkocJE909ejIJG70Vw==","signatures":[{"sig":"MEUCIEd5eMdpJomHJDzNOiPpLT5//M+UDDL/YwKm/Byngw5YAiEAkAReiNvY1LLYI6sGyD5S4m2dVBZoyK4iHQ+mw6OTdaw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58430},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5709e9c57adf0ef38c60e5ff8d8ef377f2adfa85","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.7_1754930019658_0.7699125164212584","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@ecom-co/elasticsearch","version":"0.1.8","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.8","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"9b30bd03b4c96864ce2b1e6f3247929367891c64","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.8.tgz","fileCount":32,"integrity":"sha512-D0xwdsYQAAE8pQBcpx8gOeRpoztNXbUeY2ZOSIwETHzMYl8VeU/YPi5600aYpUaxobcBa8AsB2VGudXIHjwR+w==","signatures":[{"sig":"MEUCICehNNiNyX6w1nJL87HoF13V3LbVqZmyxczmj5lsU6WHAiEAkqWwyKGiQmbRfZTrdxSxaF6vzCE142AhDauF/uuGHI4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58655},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"28f062907af3c63cf0202e3e15e182d836ea854d","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.8_1754931329070_0.5102667871889777","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@ecom-co/elasticsearch","version":"0.1.9","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.9","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"b52530da4882e4082c9dc9d0a3d04d134c4abf13","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.9.tgz","fileCount":32,"integrity":"sha512-GHoR98d6NMx2QEm01mG8YDqKyLEXdQtO8oXceA3/cfKuY2+3qM67aPSQEudKHmV13Je0z7qYr3u4l8dYF54TMg==","signatures":[{"sig":"MEQCICwGiDyMEwNeXBneXxXxqJnpioIsohlXOFzEwCcCCSldAiADCNg5FYMVlbTAiA25BUIZMBZIXRO6jVV+aUrWgDCuyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58655},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"97c9eb650713dfab4d6226cfa227832d65a49a10","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^9.1.1"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=9.1.1"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.9_1754931348899_0.7583910088995849","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@ecom-co/elasticsearch","version":"0.1.10","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.10","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"6cfa38196b704c877b24f125727bceb6e5019e6f","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.10.tgz","fileCount":32,"integrity":"sha512-5upuwVpOOCLliNvEorWWN1crUw0W0dHjBSQvoNoCLbIF+3/DGYUsL6/bi7/ZfsJfWxBWm71JgK8wMIrazM7HAQ==","signatures":[{"sig":"MEQCIGCdVbtk/UOH/maeRWOjKTXULBL9igYf9qMng7SdZY7bAiAdWqMTViVhW3bE3PWIJ3PO78J15PH6ysr7AlXV0MldnQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59306},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a904824562162f37c1014f39f0999f4953fc8d17","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^8.19.0"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=8.0.0 <9.0.0"},"optionalDependencies":{"@nestjs/terminus":"^10.2.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.10_1754932853399_0.2845030587126045","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@ecom-co/elasticsearch","version":"0.1.11","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.11","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"03216c9fe93b5fec7205e9d81ed6d0d1aaf83f6e","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.11.tgz","fileCount":32,"integrity":"sha512-WUezZqXvvVVhPKIGFdJR0dnErujyeyq7QB/RFH2+AGNIWs5gNj4WJca1I/SfzSDl+MMNolOhxS1I1pvlszvZbQ==","signatures":[{"sig":"MEQCIElweR2+YHLEubt48XW/BJFRgP4DaTjgeCWnMTZ0ks/yAiBXgSbAsmfPu2zOFcNkgCycpMuksSqpSSVsi9aqkKZgcw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65408},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"784ab4ae85694749e167ce7b5d94c4f263b351cb","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{"lodash":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@types/lodash":"^4.17.20","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^8.19.0"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=8.0.0 <9.0.0"},"optionalDependencies":{"@nestjs/terminus":"^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.11_1754934661990_0.27768417893835995","host":"s3://npm-registry-packages-npm-production"}},"0.1.12":{"name":"@ecom-co/elasticsearch","version":"0.1.12","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.12","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"55bb798f28134a366b3606924b8fece130bb4d6b","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.12.tgz","fileCount":32,"integrity":"sha512-KwrgRWGx2PRbaH96am/eZQXn0lNJ6rPAC1O4QSEC3hOoFa8xNwrQcutl+WXWGS4HsuQx3/LcTU/RjOYPendZrA==","signatures":[{"sig":"MEYCIQClWLR7yN3t9nYi/dzrFIxHBRiajWh0dPLxz1WOHeMSnwIhAJlfqcKaw0oRNwhuz1fhJL4zarPdYFv8qMHYuTuxHYMP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65408},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"491aa7413f8e7dacef95eab646b2f027d718b03c","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{"lodash":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@types/lodash":"^4.17.20","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^8.19.0"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=8.0.0 <9.0.0"},"optionalDependencies":{"@nestjs/terminus":"^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.12_1754934726329_0.1899946311645968","host":"s3://npm-registry-packages-npm-production"}},"0.1.13":{"name":"@ecom-co/elasticsearch","version":"0.1.13","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.13","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"ed7018ce0d603781984be655687666f2c4ca998c","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.13.tgz","fileCount":32,"integrity":"sha512-URQV904GhxFJ1I/n8xFfoOjMECQY09AlyEsIOqtAETcCvqaOAjOMZJyyo4Hz8cRqxCdaeF+DkuA6YR0jWeeLjQ==","signatures":[{"sig":"MEUCIQDUIMGH/CNpdYguafz4+f2d4LhMIb3U4yf8fx7+hitvkgIgMo1Gg+JTBc1zgzxB7wOxrdHGgVvGRvgWFGXEaXCUCMM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65783},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f1b918f4708269c88ec67c59de34db908a0f4508","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{"lodash":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@types/lodash":"^4.17.20","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^8.19.0"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=8.0.0 <9.0.0"},"optionalDependencies":{"@nestjs/terminus":"^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.13_1754935664552_0.45042776300707654","host":"s3://npm-registry-packages-npm-production"}},"0.1.14":{"name":"@ecom-co/elasticsearch","version":"0.1.14","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.14","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"0519d8d66d136a84df71882e4e203f0ba92288bc","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.14.tgz","fileCount":32,"integrity":"sha512-3BNV5w32f76XCrhZEMVZjVle72zVIrn429l5mQxfMxfi7yJfXWc5BjWwptY5v8pLp0cKvijWRV5cMNWwkDxH0Q==","signatures":[{"sig":"MEUCIFGnsRFVIT71wlkQfjb3HDIWJWnFQ1rF0NUpMQXKD4KFAiEAjsE6u3vdf2AbZqIYY+Bg2vnttZyR/uXz+QCR4/bKxcs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67407},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ce207529cf4f504111756f287c6e1b33f4997331","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{"lodash":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@types/lodash":"^4.17.20","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^8.19.0"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=8.0.0 <9.0.0"},"optionalDependencies":{"@nestjs/terminus":"^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.14_1755011343363_0.643076520927998","host":"s3://npm-registry-packages-npm-production"}},"0.1.15":{"name":"@ecom-co/elasticsearch","version":"0.1.15","license":"Apache-2.0","_id":"@ecom-co/elasticsearch@0.1.15","maintainers":[{"name":"nam077","email":"namnguyen177a@gmail.com"}],"homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"dist":{"shasum":"d76bec46eaf5c7b4b7f81a4608d4916e7cf2b722","tarball":"https://registry.npmjs.org/@ecom-co/elasticsearch/-/elasticsearch-0.1.15.tgz","fileCount":32,"integrity":"sha512-+VvXXfTPg9lk+B5FITjYS6/mj1Z/ke5Tz8czz1npqES0gGIYQ6v1YVC7ivUnh28raFxB2ah9FAFPAAjV8CaC3g==","signatures":[{"sig":"MEUCIHJvkdJzOQArQLk4rA5c1dPQWZ5TQgCL0hL7jqcEFrqgAiEAw1xhqNDsXqdUYYAtOXoKtRdiIbQPDNuKG2Pl7i8wV30=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70140},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"09fdf4daa082ea9a6858aacdac807e0a8f366d6e","scripts":{"lint":"eslint \"src/**/*.ts\"","build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","lint:fix":"eslint \"src/**/*.ts\" --fix","build:watch":"tsc -p tsconfig.build.json --watch","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nam077","email":"namnguyen177a@gmail.com"},"repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"_npmVersion":"10.2.5","description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","directories":{},"_nodeVersion":"20.18.3","dependencies":{"lodash":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0","typescript":"^5.7.3","@types/node":"^24.2.1","@nestjs/core":"^10.3.0","@types/lodash":"^4.17.20","@nestjs/common":"^10.3.0","@ecom-co/eslint":"^2.0.2","@elastic/elasticsearch":"^8.19.0"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@elastic/elasticsearch":">=8.0.0 <9.0.0"},"optionalDependencies":{"@nestjs/terminus":"^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch_0.1.15_1755014479475_0.13298990969369262","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-08-11T07:20:13.722Z","modified":"2025-08-15T17:38:02.385Z","0.1.0":"2025-08-11T07:20:13.977Z","0.1.2":"2025-08-11T09:47:57.835Z","0.1.3":"2025-08-11T10:04:56.423Z","0.1.4":"2025-08-11T15:38:32.156Z","0.1.5":"2025-08-11T15:44:51.088Z","0.1.6":"2025-08-11T16:28:33.785Z","0.1.7":"2025-08-11T16:33:39.889Z","0.1.8":"2025-08-11T16:55:29.239Z","0.1.9":"2025-08-11T16:55:49.108Z","0.1.10":"2025-08-11T17:20:53.590Z","0.1.11":"2025-08-11T17:51:02.161Z","0.1.12":"2025-08-11T17:52:06.558Z","0.1.13":"2025-08-11T18:07:44.733Z","0.1.14":"2025-08-12T15:09:03.527Z","0.1.15":"2025-08-12T16:01:19.660Z"},"bugs":{"url":"https://github.com/e-commerce-platform-co/lib-elasticsearch/issues"},"license":"Apache-2.0","homepage":"https://github.com/e-commerce-platform-co/lib-elasticsearch#readme","repository":{"url":"git+https://github.com/e-commerce-platform-co/lib-elasticsearch.git","type":"git"},"description":"NestJS Elasticsearch module built on @elastic/elasticsearch with multi-client support and optional health indicator","maintainers":[{"email":"support@npmjs.com","name":"npm-support"}],"readme":"# @ecom-co/elasticsearch\n\nNestJS Elasticsearch module built on `@elastic/elasticsearch` with:\n- Multi-client DI (`default`, named clients)\n- Decorators for document mapping (`@Document`, `@Field`)\n- Optional auto index creation from decorators\n- TypeORM-like repository pattern (`EsRepository`) and DI (`forFeature`, `@InjectEsRepository`)\n- Optional health indicator utilities\n\n## Install\n\n```bash\nnpm i @ecom-co/elasticsearch @elastic/elasticsearch\n```\n\nPeer deps: `@nestjs/common`, `@nestjs/core`.\n\n## Quick start\n\n1) Define a document\n\n```ts\nimport { Document, Field } from '@ecom-co/elasticsearch';\n\n@Document({ index: 'products' })\nexport class Product {\n  @Field({ type: 'keyword' }) id!: string;\n  @Field({ type: 'text', analyzer: 'standard' }) name!: string;\n  @Field({ type: 'double' }) price!: number;\n}\n```\n\n2) Register clients (sync or async)\n\n```ts\n// app.module.ts\nimport { Module } from '@nestjs/common';\nimport { ElasticsearchModule } from '@ecom-co/elasticsearch';\n\n@Module({\n  imports: [\n    ElasticsearchModule.forRoot({\n      clients: [\n        { name: 'default', node: 'http://localhost:9200' },\n        { name: 'analytics', node: 'http://localhost:9200' },\n      ],\n      autoCreateIndices: true,\n      documents: [Product],\n      // Optional: pass a Nest logger to observe request/response/errors\n      logger: new Logger('Elasticsearch'),\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\n3) Feature module repositories (TypeORM-like)\n\n```ts\n// products.module.ts\nimport { Module } from '@nestjs/common';\nimport { ElasticsearchModule } from '@ecom-co/elasticsearch';\nimport { ProductsService } from './products.service';\nimport { Product } from './product.doc';\n\n@Module({\n  imports: [\n    ElasticsearchModule.forFeature([Product]),\n    ElasticsearchModule.forFeature([Product], 'analytics'),\n  ],\n  providers: [ProductsService],\n})\nexport class ProductsModule {}\n```\n\n4) Inject repository\n\n```ts\n// products.service.ts\nimport { Injectable } from '@nestjs/common';\nimport { InjectEsRepository, EsRepository } from '@ecom-co/elasticsearch';\nimport { Product } from './product.doc';\n\n@Injectable()\nexport class ProductsService {\n  constructor(\n    @InjectEsRepository(Product)\n    private readonly repo: EsRepository<Product>,\n    @InjectEsRepository(Product, 'analytics')\n    private readonly analyticsRepo: EsRepository<Product>,\n  ) {}\n\n  async search(q: string) {\n    const primary = await this.repo.search({\n      query: { multi_match: { query: q, fields: ['name^2', 'id'] } },\n      size: 20,\n    });\n    const secondary = await this.analyticsRepo.search({ q, size: 10 });\n    return { primary, secondary };\n  }\n\n  // Access raw client when you need full power of the official API\n  async raw() {\n    const es = this.repo.getClient();\n    return es.cat.indices({ format: 'json' });\n  }\n}\n```\n\nOptional: use a named client for this feature\n\n```ts\n// products.module.ts\n@Module({\n  imports: [ElasticsearchModule.forFeature([Product], 'analytics')],\n  providers: [ProductsService],\n})\nexport class ProductsModule {}\n\n// products.service.ts\n@Injectable()\nexport class ProductsService {\n  constructor(\n    @InjectEsRepository(Product, 'analytics')\n    private readonly repo: EsRepository<Product>,\n  ) {}\n}\n```\n\n## Inject client directly (optional)\n\n```ts\nimport { Injectable } from '@nestjs/common';\nimport { InjectElasticsearch, ElasticsearchClient } from '@ecom-co/elasticsearch';\n\n@Injectable()\nexport class SearchService {\n  constructor(@InjectElasticsearch() private readonly es: ElasticsearchClient) {}\n}\n\n// Named client\n@Injectable()\nexport class AnalyticsSearch {\n  constructor(@InjectElasticsearch('analytics') private readonly es: ElasticsearchClient) {}\n}\n```\n\n## Health (optional)\n\n```ts\nimport { checkElasticsearchHealthy } from '@ecom-co/elasticsearch';\nawait checkElasticsearchHealthy(esClient);\n```\n\n## Notes\n- Register clients in the root module before using `forFeature`.\n- DI tokens: `ES_CLIENT` (default) and `ES_CLIENT_<NAME>` for named clients.\n- Repository token format: `<client>_EntityRepository` (default client omits prefix).\n\n","readmeFilename":"README.md"}