{"repo":"nestjs/elasticsearch","free":true,"listed":false,"github":"https://github.com/nestjs/elasticsearch","clone":"git clone https://github.com/nestjs/elasticsearch.git","description":"Elasticsearch module based on the official elasticsearch package 🌿","language":"TypeScript","stars":410,"topics":["nestjs","nest","nodejs","typescript","elasticsearch"],"license":"MIT","category":"data-pipelines","readme_excerpt":"[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master [travis-url]: https://travis-ci.org/nestjs/nest [linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux [linux-url]: https://travis-ci.org/nestjs/nest A progressive Node.js framework for building efficient and scalable server-side applications. Description Elasticsearch module for Nest based on the official @elastic/elasticsearch package. Installation Usage Import ElasticsearchModule : Inject ElasticsearchService : Async options Quite often you might want to asynchronously pass your module options instead of passing them beforehand. In such case, use registerAsync() method, that provides a couple of various ways to deal with async data. 1. Use factory Obviously, our factory behaves like every other one (might be async and is able to inject dependencies through inject ). 2. Use class Above construction will instantiate ElasticsearchConfigService inside ElasticsearchModule and will leverage it to create options object. 3. Use existing It works the same as useClass with one critical difference - ElasticsearchModule will lookup imported modules to reuse already created ConfigService , instead of instantiating it on its own. API Spec The ElasticsearchService wraps the Client from the official @elastic/elasticsearch methods. The ElasticsearchModule.register() takes options object as an argument, read more. Support Nest is an MIT-licensed open source project. It can grow thanks to the spo","default_branch":null,"files":null,"tree":[],"storefront":"/r/nestjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nestjs/elasticsearch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}