A simple wrapper around Elasticsearch for bulk writing items
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
client | Elasticsearch.Client |
Elasticsearch client | |
options | Object |
Options | |
[options.highWaterMark] | number |
16 |
Number of items to buffer before writing. Also the size of the underlying stream buffer. |
[options.flushTimeout] | number |
|
Number of ms to flush records after, if highWaterMark hasn't been reached |
[options.logger] | Object |
Instance of a logger like bunyan or winston |