es-count-by

1.0.1 • Public • Published

Elasticsearch Count By

Like _.countBy from lodash, but over Elasticsearch

Install

$ yarn add es-count-by

Usage

import {init, countBy} from 'es-count-by';
 
init('http://localhost:9200');
 
const counts = await countBy('type'); // {a: 1, b: 2, c: 3}

/es-count-by/

    Package Sidebar

    Install

    npm i es-count-by

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • vladgolubev