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.
Flush
editFlush
editFlush all
editvar r = this.ConnectedClient.Flush();
Flush index
editvar r = this.ConnectedClient.Flush("index");
Flush several indices
editvar r = this.ConnectedClient.Flush(new[] { "index", "index2" });
Flush by type and wait for the refresh
editvar r = this.ConnectedClient.Flush<ElasticSearchProject>(true);