pass true or false not index name

Signed-off-by: Andrew Ochsner <andrew.ochsner@cognizant.com>
This commit is contained in:
Andrew Ochsner
2023-10-29 14:12:19 -05:00
parent 1a9270c405
commit 8ede529653
@@ -96,7 +96,7 @@ export class ElasticSearchSearchEngineIndexer extends BatchSearchEngineIndexer {
index: { _index: that.indexName },
};
},
refreshOnCompletion: options.skipRefresh !== true && that.indexName,
refreshOnCompletion: options.skipRefresh !== true,
});
// Safely catch errors thrown by the bulk helper client, e.g. HTTP timeouts