bulk method

Future<bool> bulk({
  1. List<Doc>? updateDocs,
  2. List<Doc>? deleteDocs,
  3. int batchSize = 100,
})

Bulk update of the current index.

In the following order:

  • updateDocs will be updated
  • deleteDocs will be deleted

Implementation

Future<bool> bulk({
  List<Doc>? updateDocs,
  List<Doc>? deleteDocs,
  int batchSize = 100,
}) =>
    _client.bulk(
      updateDocs: updateDocs,
      deleteDocs: deleteDocs,
      batchSize: batchSize,
      index: name,
      type: type,
    );