flushIndex method
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.');
}