Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

Commit 0a9b07b

Browse files
committed
refresh option for ES 7
1 parent 557ad92 commit 0a9b07b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elasticbulk",
3-
"version": "1.0.26",
3+
"version": "1.0.28",
44
"description": "Add data in bulk to ItemsAPI or Elasticsearch. It supports data streaming from PostgreSQL or filesystem",
55
"main": "lib.js",
66
"scripts": {

src/elasticitems7x.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ module.exports.addBulkItems = function(elastic, items, options) {
145145
}, doc])
146146

147147
return elastic.bulk({
148+
refresh: options.refresh === true,
148149
index: options.index,
149150
body: body
150151
})

0 commit comments

Comments
 (0)