WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Flushedit
Flush alledit
var r = this.ConnectedClient.Flush();
Flush indexedit
var r = this.ConnectedClient.Flush("index");
Flush several indicesedit
var r = this.ConnectedClient.Flush(new[] { "index", "index2" });
Flush by type and wait for the refreshedit
var r = this.ConnectedClient.Flush<ElasticSearchProject>(true);