ElasticSearch - NodeJS
This library executes Query DSL (Domain Specific Language) based on JSON, of extremely simple format to comunicate with the ElasticSearch. Builder to execute "sync" (synchronous) It's developed to be used in any framework, ExpressJS, KoaJS, Restify, etc... Also contain a Scroll function for the execute of paginate in queries. Use Axios (dependence) for communication REST.
This library support ALL methods GET, PUT, POST, DELETE ... 😍
Install
Install used NPM.
$ npm i es.io
For BigData execute Scroll.
es
This is very good 😎
For custom execute.
es
For GET execute.
es
For PUT execute.
es
For POST execute.
es
For DELETE execute.
es
Library example
Example of any use.
// packagevar es=; // elasticsearcheshost='http://127.0.0.1:9200'; // appasync { // debug console; // data esresult=await es; // debug console; // debug console; };
ExpressJS - Example
Example of use with ExpressJS.
// packagevar express=;var es=; // elasticsearcheshost='http://127.0.0.1:9200'; // expressconst app=; // exampleapp; // appapp;
KoaJS - Example
Example of use with KoaJS.
// development
Restify - Example
Example of use with Restify.
// development