Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 751 Bytes

File metadata and controls

15 lines (11 loc) · 751 Bytes

ElasticsearchWritable(client, options)

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