[elasticsearch] added invoke_flush!(), uses _flush