reindex

suspend fun SearchClient.reindex(refresh: Boolean? = null, timeout: Duration? = null, waitForActiveShards: String? = null, requestsPerSecond: Int? = null, requireAlias: Boolean? = null, scroll: Duration? = null, slices: Int? = null, maxDocs: Int? = null, block: ReindexDSL.() -> Unit): ReindexResponse

Reindex and waits for completion. Returns a reindex response indicating what was reindexed.

Use reindexAsync if you want to process the response in the background and use the tasks API to follow progress.