LibreCat / Catmandu-Store-Elasticsearch

https://metacpan.org/release/Catmandu-Store-Elasticsearch
6 stars 5 forks source link

Add possibility to flush the bag without committing #20

Closed EreMaijala closed 5 years ago

EreMaijala commented 6 years ago

Currently if you want to send the bag contents to Elasticsearch, you need to call commit or use the hacky $store->bag->_bulk->flush;. It would be nice to have a proper flush method that could be used to send the records to Elasticsearch without instructing it to commit them immediately.

nics commented 5 years ago

version 1.01 adds a flush method (which is also called before commit)