Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Implement bulk style API #15

@dadoonet

Description

@dadoonet

As we have in Elasticsearch, that'd be great to have a Bulk API which would automatically index documents with at most 100 documents per request. So instead of managing this on the client level, devs would only write things similar to:

BulkProcessor bulkProcessor = BulkProcessor.builder(
         new SimpleLoggerListener())
        .setBulkActions(bulkSize)
        .setFlushInterval(TimeValue.timeValueSeconds(5))
        .build();

Then using it is only writing things like:

for (int i = 0; i < 100000; i++) {
  bulkProcessor.add(json);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions