flushIndex method

Future<void> flushIndex({
  1. required String index,
})

Flush index.

Implementation

Future<void> flushIndex({required String index}) async {
  final rs = await _transport.send(Request('POST', [index, '_flush'],
      params: {'wait_if_ongoing': 'true'}));
  rs.throwIfStatusNotOK(message: 'Index flust failed.');
}